summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-05-03 09:20:07 +0200
committerRichard Henderson <richard.henderson@linaro.org>2024-05-04 07:38:08 -0700
commit0cda93c9b55b1f865f92a2a2e189dcbaab485bb2 (patch)
treef91eda93fa6a75fa1eaf9281588ca307c5518342
parent1bcae46aac60ae0efbeb3957f7679da9e7e50f30 (diff)
downloadfocaccia-qemu-0cda93c9b55b1f865f92a2a2e189dcbaab485bb2.tar.gz
focaccia-qemu-0cda93c9b55b1f865f92a2a2e189dcbaab485bb2.zip
target/alpha: Use DISAS_NEXT definition instead of magic '0' value
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240424234436.995410-4-richard.henderson@linaro.org>
[PMD: Split bigger patch, part 1/5]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240503072014.24751-4-philmd@linaro.org>
-rw-r--r--target/alpha/translate.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/target/alpha/translate.c b/target/alpha/translate.c
index 52c2e6248b..9ad7bf6e5f 100644
--- a/target/alpha/translate.c
+++ b/target/alpha/translate.c
@@ -440,8 +440,10 @@ static DisasJumpType gen_bdirect(DisasContext *ctx, int ra, int32_t disp)
 
     /* Notice branch-to-next; used to initialize RA with the PC.  */
     if (disp == 0) {
-        return 0;
-    } else if (use_goto_tb(ctx, dest)) {
+        return DISAS_NEXT;
+    }
+
+    if (use_goto_tb(ctx, dest)) {
         tcg_gen_goto_tb(0);
         tcg_gen_movi_i64(cpu_pc, dest);
         tcg_gen_exit_tb(ctx->base.tb, 0);