From 113ac1d2127e4255129963c5061578b3fd85cc8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Thu, 20 Jun 2024 16:22:12 +0100 Subject: sysemu: add set_virtual_time to accel ops MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson Message-Id: <20240530220610.1245424-2-pierrick.bouvier@linaro.org> Signed-off-by: Alex Bennée Message-Id: <20240620152220.2192768-5-alex.bennee@linaro.org> --- stubs/cpus-virtual-clock.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 stubs/cpus-virtual-clock.c (limited to 'stubs/cpus-virtual-clock.c') 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 */ +} -- cgit v1.2.3