summaryrefslogtreecommitdiffstats
path: root/qemu/stubs/cpu-get-clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/stubs/cpu-get-clock.c')
-rw-r--r--qemu/stubs/cpu-get-clock.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/qemu/stubs/cpu-get-clock.c b/qemu/stubs/cpu-get-clock.c
new file mode 100644
index 000000000..5b34c976d
--- /dev/null
+++ b/qemu/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();
+}