mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -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
|
@ -96,8 +96,9 @@ int64_t cpu_get_clock(void);
|
|||
|
||||
void qemu_timer_notify_cb(void *opaque, QEMUClockType type);
|
||||
|
||||
/* get the VIRTUAL clock and VM elapsed ticks via the cpus accel interface */
|
||||
/* get/set VIRTUAL clock and VM elapsed ticks via the cpus accel interface */
|
||||
int64_t cpus_get_virtual_clock(void);
|
||||
void cpus_set_virtual_clock(int64_t new_time);
|
||||
int64_t cpus_get_elapsed_ticks(void);
|
||||
|
||||
#endif /* SYSEMU_CPU_TIMERS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue