diff --git a/hw/i386/pc.c b/hw/i386/pc.c index d36bac8c89..39d1558433 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -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 */