summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2012-02-04 13:25:04 +1100
committerskidau <skidau@gmail.com>2012-02-04 13:25:04 +1100
commitea2e0e90633535112c95e999634b1bb1111a98bd (patch)
treea2d4290a0cf11ccc806e48e9f9ac512f30981ad5 /Source/Core
parent20a4735b4da47b13ee56954bb09ae5b02f944165 (diff)
Added the HID2.WPE condition to dcbz. Fixes issue 5114.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_LoadStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_LoadStore.cpp b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_LoadStore.cpp
index b2a51b3e6f..a7955c0982 100644
--- a/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_LoadStore.cpp
+++ b/Source/Core/Core/Src/PowerPC/Interpreter/Interpreter_LoadStore.cpp
@@ -401,7 +401,7 @@ void Interpreter::dcbtst(UGeckoInstruction _inst)
void Interpreter::dcbz(UGeckoInstruction _inst)
{
// HACK but works... we think
- if (!HID0.DCFA)
+ if (HID2.WPE || !HID0.DCFA)
Memory::Memset(Helper_Get_EA_X(_inst) & (~31), 0, 32);
}