Timer: Update counters on updating wired registers

This commit is contained in:
zilmar 2013-02-03 11:51:56 +11:00
parent 8e2ea1f674
commit 9c03f2ce5a
1 changed files with 4 additions and 0 deletions

View File

@ -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");