This code should now build the x86_x64-softmmu part 2.
This commit is contained in:
@@ -493,7 +493,7 @@ static inline int64_t get_clock(void)
|
||||
{
|
||||
LARGE_INTEGER ti;
|
||||
QueryPerformanceCounter(&ti);
|
||||
return muldiv64(ti.QuadPart, get_ticks_per_sec(), clock_freq);
|
||||
return muldiv64(ti.QuadPart, (uint32_t)get_ticks_per_sec(), (uint32_t)clock_freq);
|
||||
}
|
||||
|
||||
#else
|
||||
@@ -545,9 +545,13 @@ static inline int64_t cpu_get_real_ticks(void)
|
||||
|
||||
static inline int64_t cpu_get_real_ticks(void)
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
return __rdtsc();
|
||||
#else
|
||||
int64_t val;
|
||||
asm volatile ("rdtsc" : "=A" (val));
|
||||
return val;
|
||||
#endif
|
||||
}
|
||||
|
||||
#elif defined(__x86_64__)
|
||||
|
||||
Reference in New Issue
Block a user