[Core Change] Fix TSC timer at 733 MHz for Xbox compat

This commit is contained in:
Matt Borgerson 2018-06-26 14:09:09 -07:00
parent 410702189f
commit 70de2f76b0
1 changed files with 5 additions and 0 deletions

View File

@ -158,7 +158,12 @@ static uint64_t ioportF0_read(void *opaque, hwaddr addr, unsigned size)
/* TSC handling */
uint64_t cpu_get_tsc(CPUX86State *env)
{
#ifdef XBOX
return muldiv64(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL), 733333333,
NANOSECONDS_PER_SECOND);
#else
return cpu_get_ticks();
#endif
}
/* IRQ handling */