target/alpha: Use DISAS_NEXT definition instead of magic '0' value
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 3 May 2024 07:20:07 +0000 (09:20 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 4 May 2024 14:38:08 +0000 (07:38 -0700)
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>

target/alpha/translate.c

index 52c2e6248b8d42e022e9f31d035402ab75eabf91..9ad7bf6e5fd99623a0cb5b7ea5b288a843641eda 100644 (file)
@@ -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);