From 5bd188d40dd16ed1491dd21d7c7c99d6930869f0 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Tue, 3 Aug 2021 17:06:05 +0200 Subject: [PATCH] Jit64: Fix BATAddressLookup bit test BT sets the carry flag, not the zero flag. --- Source/Core/Core/PowerPC/Jit64Common/EmuCodeBlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/Jit64Common/EmuCodeBlock.cpp b/Source/Core/Core/PowerPC/Jit64Common/EmuCodeBlock.cpp index 0d5b37d358..80d1d0f7fc 100644 --- a/Source/Core/Core/PowerPC/Jit64Common/EmuCodeBlock.cpp +++ b/Source/Core/Core/PowerPC/Jit64Common/EmuCodeBlock.cpp @@ -98,7 +98,7 @@ FixupBranch EmuCodeBlock::BATAddressLookup(X64Reg addr, X64Reg tmp, const void* MOV(32, R(addr), MComplex(tmp, addr, SCALE_4, 0)); BT(32, R(addr), Imm8(IntLog2(PowerPC::BAT_MAPPED_BIT))); - return J_CC(CC_Z, m_far_code.Enabled()); + return J_CC(CC_NC, m_far_code.Enabled()); } FixupBranch EmuCodeBlock::CheckIfSafeAddress(const OpArg& reg_value, X64Reg reg_addr,