aboutsummaryrefslogtreecommitdiffstats
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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/stubs/cpu-get-clock.c b/stubs/cpu-get-clock.c
new file mode 100644
index 000000000..9e9240481
--- /dev/null
+++ b/stubs/cpu-get-clock.c
@@ -0,0 +1,8 @@
+#include "qemu/osdep.h"
+#include "sysemu/cpu-timers.h"
+#include "qemu/main-loop.h"
+
+int64_t cpu_get_clock(void)
+{
+ return get_clock_realtime();
+}