mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02: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:
@@ -6,3 +6,8 @@ int64_t cpus_get_virtual_clock(void)
|
||||
{
|
||||
return cpu_get_clock();
|
||||
}
|
||||
|
||||
void cpus_set_virtual_clock(int64_t new_time)
|
||||
{
|
||||
/* do nothing */
|
||||
}
|
||||
+1
-1
@@ -29,7 +29,7 @@ endif
|
||||
if have_block or have_ga
|
||||
stub_ss.add(files('replay-tools.c'))
|
||||
# stubs for hooks in util/main-loop.c, util/async.c etc.
|
||||
stub_ss.add(files('cpus-get-virtual-clock.c'))
|
||||
stub_ss.add(files('cpus-virtual-clock.c'))
|
||||
stub_ss.add(files('icount.c'))
|
||||
stub_ss.add(files('graph-lock.c'))
|
||||
if linux_io_uring.found()
|
||||
|
||||
Reference in New Issue
Block a user