From: Emilio G. Cota Date: Mon, 2 Jul 2018 22:02:07 +0000 (-0400) Subject: target/ppc: set is_jmp on ppc_tr_breakpoint_check X-Git-Tag: v3.0.0-rc0~30^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a8ceefca23bc2aaafe711f8afd7585be3c27064;p=thirdparty%2Fqemu.git target/ppc: set is_jmp on ppc_tr_breakpoint_check The use of GDB breakpoints was broken by b0c2d52 ("target/ppc: convert to TranslatorOps", 2018-02-16). Fix it by setting is_jmp, so that we break from the translation loop as originally intended. Tested-by: Mark Cave-Ayland Reported-by: Mark Cave-Ayland Signed-off-by: Emilio G. Cota Signed-off-by: David Gibson --- diff --git a/target/ppc/translate.c b/target/ppc/translate.c index e120f2ed0b1..65c8cc94e75 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -7482,6 +7482,7 @@ static bool ppc_tr_breakpoint_check(DisasContextBase *dcbase, CPUState *cs, DisasContext *ctx = container_of(dcbase, DisasContext, base); gen_debug_exception(ctx); + dcbase->is_jmp = DISAS_NORETURN; /* The address covered by the breakpoint must be included in [tb->pc, tb->pc + tb->size) in order to for it to be properly cleared -- thus we increment the PC here so that