]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target-tricore: Fix LOOP using wrong register for compare
authorBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Tue, 9 Dec 2014 16:04:46 +0000 (16:04 +0000)
committerBastian Koppelmann <kbastian@mail.uni-paderborn.de>
Mon, 11 May 2015 12:15:46 +0000 (14:15 +0200)
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
target-tricore/translate.c

index 54a48cd694b4f8781a61067b300f55c0d088a7e2..d2cd64013de3c03d42a4ef1c04c8ea3bc5dc1b16 100644 (file)
@@ -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);