mirror of https://gitee.com/openkylin/qemu.git
target-tricore: Fix LOOP using wrong register for compare
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
This commit is contained in:
parent
ec62ad1e27
commit
250ef8c768
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue