From c037686a265ea770497b793167037a964b48bc76 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Wed, 27 Jan 2016 20:07:17 +0100 Subject: [PATCH] iop: don't load any value in r0 Fix lsu.irx test --- pcsx2/x86/iR3000Atables.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/x86/iR3000Atables.cpp b/pcsx2/x86/iR3000Atables.cpp index 895aa70db6..ccdbd3d4c0 100644 --- a/pcsx2/x86/iR3000Atables.cpp +++ b/pcsx2/x86/iR3000Atables.cpp @@ -712,7 +712,9 @@ static void rpsxLW() xADD(ecx, (uptr)iopMem->Main); xMOV(ecx, ptr[ecx]); - xMOV(ptr[&psxRegs.GPR.r[_Rt_]], ecx); + if (_Rt_) { + xMOV(ptr[&psxRegs.GPR.r[_Rt_]], ecx); + } x86SetJ8(j8Ptr[1]); PSX_DEL_CONST(_Rt_);