From 1387378f0cf4d0ffde3c83cf339fe1b05b3a2726 Mon Sep 17 00:00:00 2001 From: Petar Jovanovic Date: Tue, 11 Apr 2017 17:06:02 +0000 Subject: [PATCH] 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 --- VEX/priv/guest_mips_toIR.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.47.2