aboutsummaryrefslogtreecommitdiff
path: root/target/alpha/translate.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-05-03 09:20:09 +0200
committerRichard Henderson <richard.henderson@linaro.org>2024-05-04 07:38:09 -0700
commit9804ab26d0f25cb9c97e34f96bb0fb2be0a9f677 (patch)
tree707727c4fe4b8523581104115ac4f462c83715da /target/alpha/translate.c
parentc0fcd5612e84810fbc62b17fb99a0a4dd847b251 (diff)
target/alpha: Return DISAS_NORETURN once
Trivial change to make next commits easier to understand. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240424234436.995410-4-richard.henderson@linaro.org> [PMD: Split bigger patch, part 3/5] Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20240503072014.24751-6-philmd@linaro.org>
Diffstat (limited to 'target/alpha/translate.c')
-rw-r--r--target/alpha/translate.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/target/alpha/translate.c b/target/alpha/translate.c
index 01914e7b56..41151f002e 100644
--- a/target/alpha/translate.c
+++ b/target/alpha/translate.c
@@ -447,12 +447,12 @@ static DisasJumpType gen_bdirect(DisasContext *ctx, int ra, int32_t disp)
tcg_gen_goto_tb(0);
tcg_gen_movi_i64(cpu_pc, dest);
tcg_gen_exit_tb(ctx->base.tb, 0);
- return DISAS_NORETURN;
} else {
tcg_gen_movi_i64(cpu_pc, dest);
tcg_gen_lookup_and_goto_ptr();
- return DISAS_NORETURN;
}
+
+ return DISAS_NORETURN;
}
static DisasJumpType gen_bcond_internal(DisasContext *ctx, TCGCond cond,
@@ -472,8 +472,6 @@ static DisasJumpType gen_bcond_internal(DisasContext *ctx, TCGCond cond,
tcg_gen_goto_tb(1);
tcg_gen_movi_i64(cpu_pc, dest);
tcg_gen_exit_tb(ctx->base.tb, 1);
-
- return DISAS_NORETURN;
} else {
TCGv_i64 i = tcg_constant_i64(imm);
TCGv_i64 d = tcg_constant_i64(dest);
@@ -481,8 +479,9 @@ static DisasJumpType gen_bcond_internal(DisasContext *ctx, TCGCond cond,
tcg_gen_movcond_i64(cond, cpu_pc, cmp, i, d, p);
tcg_gen_lookup_and_goto_ptr();
- return DISAS_NORETURN;
}
+
+ return DISAS_NORETURN;
}
static DisasJumpType gen_bcond(DisasContext *ctx, TCGCond cond, int ra,