summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/patch-be
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu-devel/files/patch-be')
-rw-r--r--emulators/qemu-devel/files/patch-be12
1 files changed, 12 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-be b/emulators/qemu-devel/files/patch-be
new file mode 100644
index 000000000000..6c9a95892ade
--- /dev/null
+++ b/emulators/qemu-devel/files/patch-be
@@ -0,0 +1,12 @@
+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