]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
coupl'a small fixes for ppc32
authorCerion Armour-Brown <cerion@valgrind.org>
Mon, 21 Feb 2005 16:30:45 +0000 (16:30 +0000)
committerCerion Armour-Brown <cerion@valgrind.org>
Mon, 21 Feb 2005 16:30:45 +0000 (16:30 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@943

VEX/priv/guest-ppc32/toIR.c
VEX/switchback/switchback.c

index 748e77eb5da316f21be209a06fe6042074ad3c90..bb9f1a1074d9a85509d667685d2685f731fdf627 100644 (file)
@@ -1550,8 +1550,8 @@ static Bool dis_int_logic ( UInt theInstr )
    IRTemp Rb = newTemp(Ity_I32);
    IRTemp Sign = newTemp(Ity_I32);
    
-   assign( Rs, getIReg(Ra_addr) );
-   assign( Rb, getIReg(Ra_addr) );
+   assign( Rs, getIReg(Rs_addr) );
+   assign( Rb, getIReg(Rb_addr) );
    
    switch (opc1) {
    case 0x1C: // andi. (AND Immediate, p388)
@@ -2489,7 +2489,7 @@ static Bool dis_branch ( UInt theInstr, DisResult *whatNext )
             vex_printf("dis_int_branch(PPC32)(bcctr,BO)\n");
             return False;
          }
-         DIP("bcctr%s 0x%x, 0x%x,\n", flag_LK ? "l" : "", BO, BI);
+         DIP("bcctr%s 0x%x, 0x%x\n", flag_LK ? "l" : "", BO, BI);
          
          assign( cond_ok, branch_cond_ok( BO, BI ) );
          
@@ -2511,7 +2511,7 @@ static Bool dis_branch ( UInt theInstr, DisResult *whatNext )
          break;
          
       case 0x010: // bclr (Branch Cond. to Link Register, p395) 
-         DIP("bclr%s 0x%x, 0x%x,\n", flag_LK ? "l" : "", BO, BI);
+         DIP("bclr%s 0x%x, 0x%x\n", flag_LK ? "l" : "", BO, BI);
 
          if (!(BO & 0x4)) {
             stmt( IRStmt_Put(OFFB_CTR, binop(Iop_Sub32,
index 0ecabb2afb0751818554f7d7100e504acf21b419..51189fe6efe1c9566a745b9341457e1891b9bcc4 100644 (file)
@@ -573,7 +573,8 @@ static void run_simulator ( void )
          }
 #        elif defined(__powerpc__)
          {
-            gst.guest_GPR3 = serviceFn( gst.guest_GPR4, gst.guest_GPR5 );
+// CAB: ?  Need to send gpr3 as arg1, but what about return param?
+            gst.guest_GPR3 = serviceFn( gst.guest_GPR3, gst.guest_GPR4 );
             gst.guest_CIA  = gst.guest_LR;
             next_guest     = gst.guest_CIA;
          }