From 9c03f2ce5ac02c1f3cb66c7f2a7cf9228f932237 Mon Sep 17 00:00:00 2001 From: zilmar Date: Sun, 3 Feb 2013 11:51:56 +1100 Subject: [PATCH] Timer: Update counters on updating wired registers --- Source/Project64/N64 System/Recompiler/Recompiler Ops.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Project64/N64 System/Recompiler/Recompiler Ops.cpp b/Source/Project64/N64 System/Recompiler/Recompiler Ops.cpp index cc1ff354f..c6c8345a0 100644 --- a/Source/Project64/N64 System/Recompiler/Recompiler Ops.cpp +++ b/Source/Project64/N64 System/Recompiler/Recompiler Ops.cpp @@ -4155,6 +4155,10 @@ void CRecompilerOps::COP0_MT (void) { } break; case 6: //Wired + m_RegWorkingSet.SetBlockCycleCount(m_RegWorkingSet.GetBlockCycleCount() - g_System->CountPerOp()) ; + UpdateCounters(m_RegWorkingSet,false, true); + m_RegWorkingSet.SetBlockCycleCount(m_RegWorkingSet.GetBlockCycleCount() + g_System->CountPerOp()) ; + BeforeCallDirect(m_RegWorkingSet); MoveConstToX86reg((DWORD)g_SystemTimer,x86_ECX); Call_Direct(AddressOf(&CSystemTimer::UpdateTimers), "CSystemTimer::UpdateTimers");