From af2cc2663a8df772427a7c0ea5ff070218907892 Mon Sep 17 00:00:00 2001 From: "sudonim1@gmail.com" Date: Fri, 8 Jul 2011 04:24:24 +0000 Subject: [PATCH] EE: Put _Rt_ checks back in the load instructions because as silly as it would be we must avoid potentially writing to r0. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4800 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/x86/ix86-32/iR5900LoadStore.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pcsx2/x86/ix86-32/iR5900LoadStore.cpp b/pcsx2/x86/ix86-32/iR5900LoadStore.cpp index 946c777b06..61238ea3c7 100644 --- a/pcsx2/x86/ix86-32/iR5900LoadStore.cpp +++ b/pcsx2/x86/ix86-32/iR5900LoadStore.cpp @@ -271,8 +271,9 @@ void recSD( void ) { recStore(64); } void recLWL( void ) { + if (!_Rt_) + return; #ifdef REC_LOADS - iFlushCall(FLUSH_EXCEPTION); _deleteEEreg(_Rt_, 1); @@ -315,6 +316,8 @@ void recLWL( void ) //////////////////////////////////////////////////// void recLWR(void) { + if (!_Rt_) + return; #ifdef REC_LOADS iFlushCall(FLUSH_EXCEPTION); _deleteEEreg(_Rt_, 1); @@ -453,6 +456,8 @@ void recSWR(void) //////////////////////////////////////////////////// void recLDL( void ) { + if (!_Rt_) + return; iFlushCall(FLUSH_EXCEPTION); _deleteEEreg(_Rs_, 1); _deleteEEreg(_Rt_, 1); @@ -462,6 +467,8 @@ void recLDL( void ) //////////////////////////////////////////////////// void recLDR( void ) { + if (!_Rt_) + return; iFlushCall(FLUSH_EXCEPTION); _deleteEEreg(_Rs_, 1); _deleteEEreg(_Rt_, 1);