freebsd-ports/emulators/qemu/files/patch-be
Hye-Shik Chang 6731665740 Add port for qemu 0.5.5 snapshot of 04/05/30,
A fast CPU emulator environment.

PR:		67506
Submitted by:	Juergen Lock <nox@jelal.kn-bremen.de>
2004-06-03 02:12:52 +00:00

12 lines
456 B
Text

Index: qemu/vl.c
@@ -666,8 +667,8 @@
{
struct timeval r;
if (!gettimeofday(&r, NULL)) {
- return ((CLK_TCK * 1000LL) * (int64_t)r.tv_sec
- + ((int64_t)r.tv_usec * CLK_TCK) / 1000) / timer_freq;
+ return ((timer_freq * 1000LL) * (int64_t)r.tv_sec
+ + ((int64_t)r.tv_usec * timer_freq) / 1000) / timer_freq;
}
}
#else