From 0de0bea07a8791bcd911efcd60198a386bb186b1 Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 28 Nov 2024 12:37:42 +1030 Subject: [PATCH] Core: Ignore write in CX86RecompilerOps::SPECIAL_OR --- .../N64System/Recompiler/x86/x86RecompilerOps.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp index 8a3e0feaf..5dfd4fe97 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp @@ -5717,6 +5717,10 @@ void CX86RecompilerOps::SPECIAL_AND() void CX86RecompilerOps::SPECIAL_OR() { + if (m_Opcode.rd == 0) + { + return; + } if (m_RegWorkingSet.IsKnown(m_Opcode.rt) && m_RegWorkingSet.IsKnown(m_Opcode.rs)) { if (m_RegWorkingSet.IsConst(m_Opcode.rt) && m_RegWorkingSet.IsConst(m_Opcode.rs))