From 0ffaf43418f954e3c8d1b3995b3e4dd8ee089100 Mon Sep 17 00:00:00 2001 From: zilmar Date: Mon, 10 Oct 2022 12:41:12 +1030 Subject: [PATCH] Core: fix CX86RecompilerOps::LD when rt==base --- .../N64System/Recompiler/x86/x86RecompilerOps.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp index 247b1fb86..c8f4bc428 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp @@ -4002,11 +4002,7 @@ void CX86RecompilerOps::LD() ProtectGPR(m_Opcode.rt); } - Map_GPR_64bit(m_Opcode.rt, -1); - if (m_Opcode.rt == m_Opcode.base) - { - g_Notify->BreakPoint(__FILE__, __LINE__); - } + Map_GPR_64bit(m_Opcode.rt, m_Opcode.rt == m_Opcode.base ? m_Opcode.base : -1); CompileLoadMemoryValue(CX86Ops::x86_Unknown, GetMipsRegMapLo(m_Opcode.rt), GetMipsRegMapHi(m_Opcode.rt), 64, false); } if (g_System->bFastSP() && m_Opcode.rt == 29)