From: Richard Henderson Date: Mon, 17 May 2021 20:50:08 +0000 (-0300) Subject: target/ppc: Tidy exception vs exit_tb X-Git-Tag: v6.1.0-rc0~114^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0032dbdb415093160e0b979a8ff66ae5ac0ca3e2;p=thirdparty%2Fqemu.git target/ppc: Tidy exception vs exit_tb We do not need to emit an exit_tb after an exception, as the latter will exit via longjmp. Signed-off-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20210517205025.3777947-7-matheus.ferst@eldorado.org.br> Signed-off-by: David Gibson --- diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 05e3c0417a3..e68152810e6 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -4648,8 +4648,9 @@ static void gen_lookup_and_goto_ptr(DisasContext *ctx) } else if (sse & (CPU_SINGLE_STEP | CPU_BRANCH_STEP)) { uint32_t excp = gen_prep_dbgex(ctx); gen_exception(ctx, excp); + } else { + tcg_gen_exit_tb(NULL, 0); } - tcg_gen_exit_tb(NULL, 0); } else { tcg_gen_lookup_and_goto_ptr(); }