aboutsummaryrefslogtreecommitdiff
path: root/stubs/cpu-get-clock.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-11-26 15:36:40 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2013-01-12 17:19:08 +0100
commit5708fc665524c5218076388504d078441fb3940c (patch)
treec6d12ab197b28bd9bd5ddc22810cb89d6c9d45f8 /stubs/cpu-get-clock.c
parent4d4545743f55b37d37535f7b32456b82c97efeb8 (diff)
stubs: fully replace qemu-tool.c and qemu-user.c
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'stubs/cpu-get-clock.c')
-rw-r--r--stubs/cpu-get-clock.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/stubs/cpu-get-clock.c b/stubs/cpu-get-clock.c
new file mode 100644
index 0000000000..5b34c976d9
--- /dev/null
+++ b/stubs/cpu-get-clock.c
@@ -0,0 +1,7 @@
+#include "qemu-common.h"
+#include "qemu/timer.h"
+
+int64_t cpu_get_clock(void)
+{
+ return get_clock_realtime();
+}