From 4c3a799f08f6f3b6a230987c3e0a1e984cf3a565 Mon Sep 17 00:00:00 2001 From: skidau Date: Fri, 4 Nov 2011 19:07:09 +1100 Subject: [PATCH] Added a check for HID0.DCFA before proceeding to dcbz. Allows Rubik's Puzzle Galaxy: RUSH to go in-game. --- .../Core/Src/PowerPC/Interpreter/Interpreter_LoadStore.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_LoadStore.cpp b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_LoadStore.cpp index 1133f348e4..b2a51b3e6f 100644 --- a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_LoadStore.cpp +++ b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_LoadStore.cpp @@ -401,7 +401,8 @@ void Interpreter::dcbtst(UGeckoInstruction _inst) void Interpreter::dcbz(UGeckoInstruction _inst) { // HACK but works... we think - Memory::Memset(Helper_Get_EA_X(_inst) & (~31), 0, 32); + if (!HID0.DCFA) + Memory::Memset(Helper_Get_EA_X(_inst) & (~31), 0, 32); } // eciwx/ecowx technically should access the specified device