aboutsummaryrefslogtreecommitdiff
path: root/stubs/cpu-get-clock.c
diff options
context:
space:
mode:
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();
+}