From: Richard Henderson Date: Fri, 3 May 2024 07:20:08 +0000 (+0200) Subject: target/alpha: Inline DISAS_PC_UPDATED and return DISAS_NORETURN X-Git-Tag: v9.1.0-rc0~122^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c0fcd5612e84810fbc62b17fb99a0a4dd847b251;p=thirdparty%2Fqemu.git target/alpha: Inline DISAS_PC_UPDATED and return DISAS_NORETURN Inline DISAS_PC_UPDATED switch case from alpha_tr_tb_stop(): switch (ctx->base.is_jmp) { ... case DISAS_PC_UPDATED: tcg_gen_lookup_and_goto_ptr(); break; Signed-off-by: Richard Henderson Message-Id: <20240424234436.995410-4-richard.henderson@linaro.org> [PMD: Split bigger patch, part 2/5] Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20240503072014.24751-5-philmd@linaro.org> --- diff --git a/target/alpha/translate.c b/target/alpha/translate.c index 9ad7bf6e5fd..01914e7b560 100644 --- a/target/alpha/translate.c +++ b/target/alpha/translate.c @@ -450,7 +450,8 @@ static DisasJumpType gen_bdirect(DisasContext *ctx, int ra, int32_t disp) return DISAS_NORETURN; } else { tcg_gen_movi_i64(cpu_pc, dest); - return DISAS_PC_UPDATED; + tcg_gen_lookup_and_goto_ptr(); + return DISAS_NORETURN; } } @@ -479,7 +480,8 @@ static DisasJumpType gen_bcond_internal(DisasContext *ctx, TCGCond cond, TCGv_i64 p = tcg_constant_i64(ctx->base.pc_next); tcg_gen_movcond_i64(cond, cpu_pc, cmp, i, d, p); - return DISAS_PC_UPDATED; + tcg_gen_lookup_and_goto_ptr(); + return DISAS_NORETURN; } }