Skip to contentSkip to conversation

[5521] Fix typos in PPC TCG conversion.

Qemu-devel Paul Brook 1 participant 1 message Oct 24, 2008

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 5521

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5521
Author:   pbrook
Date:     2008-10-24 12:03:16 +0000 (Fri, 24 Oct 2008)

Log Message:
-----------
Fix typos in PPC TCG conversion.

Modified Paths:
--------------
trunk/target-ppc/translate.c

Modified: trunk/target-ppc/translate.c
===================================================================

target-ppc/translate.c +2 -2
@@ -1315,7 +1315,7 @@
 {
     tcg_gen_helper_1_1(helper_cntlzw, cpu_gpr[rA(ctx->opcode)], cpu_gpr[rS(ctx->opcode)]);
     if (unlikely(Rc(ctx->opcode) != 0))
-        gen_set_Rc0(ctx, cpu_gpr[rS(ctx->opcode)]);
+        gen_set_Rc0(ctx, cpu_gpr[rA(ctx->opcode)]);
 }
 /* eqv & eqv. */
 GEN_LOGICAL2(eqv, tcg_gen_eqv_tl, 0x08, PPC_INTEGER);
@@ -3450,7 +3450,7 @@
     else if (sh < 0)                                                          \
         tcg_gen_shli_i32(temp1, cpu_crf[crbA(ctx->opcode) >> 2], -sh);        \
     else                                                                      \
-        tcg_gen_mov_i32(temp1, cpu_crf[crbB(ctx->opcode) >> 2]);              \
+        tcg_gen_mov_i32(temp1, cpu_crf[crbA(ctx->opcode) >> 2]);              \
     temp2 = tcg_temp_new(TCG_TYPE_I32);                                       \
     sh = (crbD(ctx->opcode) & 0x03) - (crbB(ctx->opcode) & 0x03);             \
     if (sh > 0)                                                               \