aboutsummaryrefslogtreecommitdiff
path: root/stubs/cpus-virtual-clock.c
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2024-06-20 16:22:12 +0100
committerAlex Bennée <alex.bennee@linaro.org>2024-06-24 10:14:34 +0100
commit113ac1d2127e4255129963c5061578b3fd85cc8f (patch)
tree404784a82d4fe85838b5513dd2193df6c284672c /stubs/cpus-virtual-clock.c
parentad59d5caee26178b6719a2f38e931c89840b7350 (diff)
sysemu: add set_virtual_time to accel ops
We are about to remove direct calls to individual accelerators for this information and will need a central point for plugins to hook into time changes. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240530220610.1245424-2-pierrick.bouvier@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240620152220.2192768-5-alex.bennee@linaro.org>
Diffstat (limited to 'stubs/cpus-virtual-clock.c')
-rw-r--r--stubs/cpus-virtual-clock.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/stubs/cpus-virtual-clock.c b/stubs/cpus-virtual-clock.c
new file mode 100644
index 0000000000..af7c1a1d40
--- /dev/null
+++ b/stubs/cpus-virtual-clock.c
@@ -0,0 +1,13 @@
+#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();
+}
+
+void cpus_set_virtual_clock(int64_t new_time)
+{
+ /* do nothing */
+}