Skip to content

Commit

Permalink
target-tricore: Fix LOOP using wrong register for compare
Browse files Browse the repository at this point in the history
Signed-off-by: Bastian Koppelmann <[email protected]>
  • Loading branch information
bkoppelmann committed May 11, 2015
1 parent ec62ad1 commit 250ef8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-tricore/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3440,7 +3440,7 @@ static void gen_compute_branch(DisasContext *ctx, uint32_t opc, int r1,
break;
case OPCM_32_BRR_LOOP:
if (MASK_OP_BRR_OP2(ctx->opcode) == OPC2_32_BRR_LOOP) {
gen_loop(ctx, r1, offset * 2);
gen_loop(ctx, r2, offset * 2);
} else {
/* OPC2_32_BRR_LOOPU */
gen_goto_tb(ctx, 0, ctx->pc + offset * 2);
Expand Down

0 comments on commit 250ef8c

Please sign in to comment.