target/ppc: Disable goto_tb with architectural singlestep
PATCH 1/1 target/ppc: Disable goto_tb with architectural singlestep
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.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1795
--- target/ppc/translate.c | 3 +++ 1 file changed, 3 insertions(+)
target/ppc/translate.c +3 -0
@@ -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); }
Signature · 1 line
2.34.1
Cc qemu-stable.
Quoted 26 lines · Richard Henderson
The change to use
translator_use_goto_tbwent too far, as theCF_SINGLE_STEPflag 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
Signed-off-by Richard Henderson <[email protected]>--- target/ppc/translate.c | 3 +++ 1 file changed, 3 insertions(+)target/ppc/translate.c +3
-0@@ -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); }
Quoted 8 lines · Richard Henderson
The change to use
translator_use_goto_tbwent too far, as theCF_SINGLE_STEPflag 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
Signed-off-by Richard Henderson <[email protected]>
Thanks,
C.
Quoted 18 lines
--- target/ppc/translate.c | 3 +++ 1 file changed, 3 insertions(+)target/ppc/translate.c +3
-0@@ -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); }
Quoted 11 lines · Richard Henderson
The change to use
translator_use_goto_tbwent too far, as theCF_SINGLE_STEPflag 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
Signed-off-by Richard Henderson <[email protected]>--- target/ppc/translate.c | 3 +++ 1 file changed, 3 insertions(+)