mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
accel/tcg: Introduce TCGCPUOps::need_replay_interrupt() handler
In order to make accel/tcg/ target agnostic, introduce the need_replay_interrupt() handler. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Anton Johansson <anjo@rev.ng> Reviewed-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> Message-Id: <20240124101639.30056-7-philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
991bd65ddd
commit
0fdc69b76e
2 changed files with 10 additions and 3 deletions
|
@ -166,6 +166,11 @@ struct TCGCPUOps {
|
|||
*/
|
||||
bool (*io_recompile_replay_branch)(CPUState *cpu,
|
||||
const TranslationBlock *tb);
|
||||
/**
|
||||
* @need_replay_interrupt: Return %true if @interrupt_request
|
||||
* needs to be recorded for replay purposes.
|
||||
*/
|
||||
bool (*need_replay_interrupt)(int interrupt_request);
|
||||
#endif /* !CONFIG_USER_ONLY */
|
||||
#endif /* NEED_CPU_H */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue