From ab2b0bc8d20f86bd6c0ed5a634ce4bc3be3bce41 Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Wed, 2 Dec 2009 14:44:01 +0000 Subject: [PATCH] Another fix to the hack. Yea. :p git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2286 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/R3000A.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/R3000A.cpp b/pcsx2/R3000A.cpp index a083c52e9e..a98c2aaf65 100644 --- a/pcsx2/R3000A.cpp +++ b/pcsx2/R3000A.cpp @@ -275,7 +275,8 @@ __releaseinline void psxBranchTest() // thread sleep hangs and allow the IOP to "come back to life." psxRegs.interrupt &= ~IopEvt_SIFhack; } - else if( IopEvt_SIFhack && (psxRegs.interrupt & IopEvt_SIFhack) ) +#ifdef IOP_ENABLE_SIF_HACK + else if( !(psxRegs.interrupt & IopEvt_SIFhack) ) { // Safeguard: since we're not executing an exception vector, we should schedule a SIF wakeup // just in case. @@ -287,6 +288,7 @@ __releaseinline void psxBranchTest() PSX_INT( IopEvt_SIFhack, 128 ); } +#endif } void iopTestIntc()