From b792299ef1e51673b82229a563b426e279689a59 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Fri, 14 Apr 2017 14:06:13 +0100 Subject: [PATCH] Jit_LoadStore: Fix dbat memory access Was broken by e10b715666222e48781c8ae04c7c024baf4ede7b --- Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp index 503dd8eb19..1d34bf4796 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp @@ -348,7 +348,7 @@ void Jit64::dcbz(UGeckoInstruction inst) MOV(64, R(RSCRATCH2), ImmPtr(&PowerPC::dbat_table[0])); PUSH(RSCRATCH); SHR(32, R(RSCRATCH), Imm8(PowerPC::BAT_INDEX_SHIFT)); - TEST(32, MComplex(RSCRATCH, RSCRATCH2, SCALE_4, 0), Imm32(PowerPC::BAT_PHYSICAL_BIT)); + TEST(32, MComplex(RSCRATCH2, RSCRATCH, SCALE_4, 0), Imm32(PowerPC::BAT_PHYSICAL_BIT)); POP(RSCRATCH); FixupBranch slow = J_CC(CC_Z, true);