From 95015302d691d12d55c10595e327cbb47cb56557 Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 28 Nov 2024 15:38:54 +1030 Subject: [PATCH] Core: Have CX86RecompilerOps::SPECIAL_XOR treat R0 as 64bit constant --- .../N64System/Recompiler/x86/x86RecompilerOps.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp index 8e00096a5..4b9847de5 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp @@ -6012,7 +6012,7 @@ void CX86RecompilerOps::SPECIAL_XOR() { uint64_t Value; - if (m_RegWorkingSet.Is64Bit(KnownReg)) + if (m_RegWorkingSet.Is64Bit(KnownReg) || KnownReg == 0) { Value = m_RegWorkingSet.GetMipsReg(KnownReg); m_RegWorkingSet.Map_GPR_64bit(m_Opcode.rd, UnknownReg);