From: Petar Jovanovic Date: Tue, 11 Apr 2017 17:06:02 +0000 (+0000) Subject: mips: update code for Dis_Resteer for mode64 X-Git-Tag: svn/VALGRIND_3_13_0^2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1387378f0cf4d0ffde3c83cf339fe1b05b3a2726;p=thirdparty%2Fvalgrind.git mips: update code for Dis_Resteer for mode64 Even though Dis_Resteer is currently unused, the code for mode64 should be different. Nicely spotted by Florian K. git-svn-id: svn://svn.valgrind.org/vex/trunk@3347 --- diff --git a/VEX/priv/guest_mips_toIR.c b/VEX/priv/guest_mips_toIR.c index 38f375e6fc..9ed0e43c76 100644 --- a/VEX/priv/guest_mips_toIR.c +++ b/VEX/priv/guest_mips_toIR.c @@ -17249,7 +17249,10 @@ static DisResult disInstr_MIPS_WRK ( Bool(*resteerOkFn) (/*opaque */void *, break; case Dis_ResteerU: case Dis_ResteerC: - putPC(mkU32(dres.continueAt)); + if (mode64) + putPC(mkU64(dres.continueAt)); + else + putPC(mkU32(dres.continueAt)); break; case Dis_StopHere: break;