]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix IR injection for ppc32. Need to use mkSzImm not mkU64...
authorFlorian Krohm <florian@eich-krohm.de>
Wed, 29 Aug 2012 15:00:13 +0000 (15:00 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Wed, 29 Aug 2012 15:00:13 +0000 (15:00 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@2492

VEX/priv/guest_ppc_toIR.c

index 6439e79d377782228cc039317887b4de15dfa7f1..2a768013cffae111558b08f783b847061376a929 100644 (file)
@@ -16603,8 +16603,9 @@ DisResult disInstr_PPC_WRK (
             // injecting here can change. In which case the translation has to
             // be redone. For ease of handling, we simply invalidate all the
             // time.
-            stmt(IRStmt_Put(OFFB_TISTART, mkU64(guest_CIA_curr_instr)));
-            stmt(IRStmt_Put(OFFB_TILEN,   mkU64(20)));
+
+            stmt(IRStmt_Put(OFFB_TISTART, mkSzImm(ty, guest_CIA_curr_instr)));
+            stmt(IRStmt_Put(OFFB_TILEN,   mkSzImm(ty, 20)));
    
             putGST( PPC_GST_CIA, mkSzImm( ty, guest_CIA_bbstart + delta ));
             dres.whatNext    = Dis_StopHere;