diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-24 11:16:36 +0100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2024-01-29 21:04:10 +1000 |
commit | 0fdc69b76ee67583e0fe0e0fd31da212f506cd66 (patch) | |
tree | 70ff550d7294fffb18a2babd5af0d190c2236a2f /include/hw/core | |
parent | 991bd65ddd3282f2422837a593adc621c0defc2d (diff) | |
download | qemu-0fdc69b76ee67583e0fe0e0fd31da212f506cd66.zip qemu-0fdc69b76ee67583e0fe0e0fd31da212f506cd66.tar.gz qemu-0fdc69b76ee67583e0fe0e0fd31da212f506cd66.tar.bz2 |
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>
Diffstat (limited to 'include/hw/core')
-rw-r--r-- | include/hw/core/tcg-cpu-ops.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/core/tcg-cpu-ops.h b/include/hw/core/tcg-cpu-ops.h index 3ed2798..013867b 100644 --- a/include/hw/core/tcg-cpu-ops.h +++ b/include/hw/core/tcg-cpu-ops.h @@ -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 */ |