mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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>
This commit is contained in:
parent
ad59d5caee
commit
113ac1d212
5 changed files with 36 additions and 3 deletions
13
stubs/cpus-virtual-clock.c
Normal file
13
stubs/cpus-virtual-clock.c
Normal file
|
@ -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 */
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue