aboutsummaryrefslogtreecommitdiff
path: root/stubs/cpus-get-virtual-clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'stubs/cpus-get-virtual-clock.c')
-rw-r--r--stubs/cpus-get-virtual-clock.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/stubs/cpus-get-virtual-clock.c b/stubs/cpus-get-virtual-clock.c
new file mode 100644
index 0000000000..fd447d53f3
--- /dev/null
+++ b/stubs/cpus-get-virtual-clock.c
@@ -0,0 +1,8 @@
+#include "qemu/osdep.h"
+#include "sysemu/cpu-timers.h"
+#include "qemu/main-loop.h"
+
+int64_t cpus_get_virtual_clock(void)
+{
+ return cpu_get_clock();
+}