From ca037abf2b8b9e4b8d6897b33e74fb954207c386 Mon Sep 17 00:00:00 2001 From: zilmar Date: Mon, 10 Oct 2022 15:44:52 +1030 Subject: [PATCH] Core: Update counters when updating wired --- .../N64System/Recompiler/x86/x86RecompilerOps.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp index 4e28502d8..b71583683 100644 --- a/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp +++ b/Source/Project64-core/N64System/Recompiler/x86/x86RecompilerOps.cpp @@ -7293,6 +7293,10 @@ void CX86RecompilerOps::COP0_DMF() void CX86RecompilerOps::COP0_MT() { + if (m_Opcode.rd == 6) + { + UpdateCounters(m_RegWorkingSet, false, true); + } m_RegWorkingSet.BeforeCallDirect(); if (IsConst(m_Opcode.rt)) { @@ -7322,6 +7326,10 @@ void CX86RecompilerOps::COP0_MT() void CX86RecompilerOps::COP0_DMT() { + if (m_Opcode.rd == 6) + { + UpdateCounters(m_RegWorkingSet, false, true); + } m_RegWorkingSet.BeforeCallDirect(); if (IsConst(m_Opcode.rt)) {