Skip to content

Commit

Permalink
target/alpha: Use DISAS_NEXT definition instead of magic '0' value
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Henderson <[email protected]>
Message-Id: <[email protected]>
[PMD: Split bigger patch, part 1/5]
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
rth7680 committed May 4, 2024
1 parent 1bcae46 commit 0cda93c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions target/alpha/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0cda93c

Please sign in to comment.