Core: Update counters when updating wired

This commit is contained in:
zilmar 2022-10-10 15:44:52 +10:30
parent 29e1468338
commit ca037abf2b
1 changed files with 8 additions and 0 deletions

View File

@ -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))
{