[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/4] accel/tcg: Create io_recompile_replay_branch hook
From: |
Peter Maydell |
Subject: |
Re: [PATCH 2/4] accel/tcg: Create io_recompile_replay_branch hook |
Date: |
Tue, 9 Feb 2021 17:05:44 +0000 |
On Tue, 9 Feb 2021 at 00:29, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Create a hook in which to split out the mips and
> sh4 ifdefs from cpu_io_recompile.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> include/hw/core/tcg-cpu-ops.h | 10 ++++++++++
> accel/tcg/translate-all.c | 17 +++++++++++++----
> 2 files changed, 23 insertions(+), 4 deletions(-)
>
> diff --git a/include/hw/core/tcg-cpu-ops.h b/include/hw/core/tcg-cpu-ops.h
> index ac3bb051f2..ddf334411f 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 stoped, and cpu_restore_state_from_tb has been
"stopped"
> + * 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 */
thanks
-- PMM
- [PATCH 0/4] accel/tcg: Create io_recompile_replay_branch hook, Richard Henderson, 2021/02/08
- [PATCH 1/4] exec: Move TranslationBlock typedef to qemu/typedefs.h, Richard Henderson, 2021/02/08
- [PATCH 2/4] accel/tcg: Create io_recompile_replay_branch hook, Richard Henderson, 2021/02/08
- Re: [PATCH 2/4] accel/tcg: Create io_recompile_replay_branch hook,
Peter Maydell <=
- [PATCH 4/4] target/sh4: Create superh_io_recompile_replay_branch, Richard Henderson, 2021/02/08
- [PATCH 3/4] target/mips: Create mips_io_recompile_replay_branch, Richard Henderson, 2021/02/08
- Re: [PATCH 0/4] accel/tcg: Create io_recompile_replay_branch hook, Alex Bennée, 2021/02/09