diff options
author | Richard Henderson | 2021-02-13 14:03:13 +0100 |
---|---|---|
committer | Alex Bennée | 2021-02-18 09:19:12 +0100 |
commit | d9bcb58a128344b87a26d6073caa2c6117ec211d (patch) | |
tree | dacbb34633f794b80ffed58a13b0731c611af4a9 /include/hw/core | |
parent | exec: Move TranslationBlock typedef to qemu/typedefs.h (diff) | |
download | qemu-d9bcb58a128344b87a26d6073caa2c6117ec211d.tar.gz qemu-d9bcb58a128344b87a26d6073caa2c6117ec211d.tar.xz qemu-d9bcb58a128344b87a26d6073caa2c6117ec211d.zip |
accel/tcg: Create io_recompile_replay_branch hook
Create a hook in which to split out the mips and
sh4 ifdefs from cpu_io_recompile.
[AJB: s/stoped/stopped/]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210208233906.479571-3-richard.henderson@linaro.org>
Message-Id: <20210213130325.14781-12-alex.bennee@linaro.org>
Diffstat (limited to 'include/hw/core')
-rw-r--r-- | include/hw/core/tcg-cpu-ops.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/hw/core/tcg-cpu-ops.h b/include/hw/core/tcg-cpu-ops.h index ac3bb051f2..72d791438c 100644 --- a/include/hw/core/tcg-cpu-ops.h +++ b/include/hw/core/tcg-cpu-ops.h @@ -88,6 +88,16 @@ struct TCGCPUOps { */ bool (*debug_check_watchpoint)(CPUState *cpu, CPUWatchpoint *wp); + /** + * @io_recompile_replay_branch: Callback for cpu_io_recompile. + * + * The cpu has been stopped, and cpu_restore_state_from_tb has been + * called. If the faulting instruction is in a delay slot, and the + * target architecture requires re-execution of the branch, then + * adjust the cpu state as required and return true. + */ + bool (*io_recompile_replay_branch)(CPUState *cpu, + const TranslationBlock *tb); #endif /* CONFIG_SOFTMMU */ #endif /* NEED_CPU_H */ |