Message ID | 20230731210211.137353-9-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show |
Series | [PULL,01/10] util/interval-tree: Use qatomic_read for left/right while searching | expand |
01.08.2023 00:02, Richard Henderson wrote: > The change to use translator_use_goto_tb went too far, as the > CF_SINGLE_STEP flag managed by the translator only handles > gdb single stepping and not the architectural single stepping > modeled in DisasContext.singlestep_enabled. > > Fixes: 6e9cc373ec5 ("target/ppc: Use translator_use_goto_tb") > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1795 > Reviewed-by: Cédric Le Goater <clg@kaod.org> > Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > target/ppc/translate.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/target/ppc/translate.c b/target/ppc/translate.c > index e6a0709066..74796ec7ba 100644 > --- a/target/ppc/translate.c > +++ b/target/ppc/translate.c > @@ -4175,6 +4175,9 @@ static void pmu_count_insns(DisasContext *ctx) > > static inline bool use_goto_tb(DisasContext *ctx, target_ulong dest) > { > + if (unlikely(ctx->singlestep_enabled)) { > + return false; > + } > return translator_use_goto_tb(&ctx->base, dest); > } This smells like a -stable material too. Please let me know if it is not. Thanks, /mjt
01.08.2023 09:05, Michael Tokarev wrote:
..
> This smells like a -stable material too. Please let me know if it is not.
Ah, it has been Cc'ed there, n/m.
/mjt
diff --git a/target/ppc/translate.c b/target/ppc/translate.c index e6a0709066..74796ec7ba 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -4175,6 +4175,9 @@ static void pmu_count_insns(DisasContext *ctx) static inline bool use_goto_tb(DisasContext *ctx, target_ulong dest) { + if (unlikely(ctx->singlestep_enabled)) { + return false; + } return translator_use_goto_tb(&ctx->base, dest); }