If RSP did not halt, re run it after a few cycles

This commit is contained in:
zilmar 2012-10-24 22:56:58 +11:00
parent 14eff29e3a
commit 0cdb90fa6d
1 changed files with 7 additions and 0 deletions

View File

@ -1592,6 +1592,13 @@ void CN64System::RunRSP ( void ) {
if (bShowCPUPer()) { m_CPU_Usage.StartTimer(CPU_UsageAddr); }
//if (bProfiling) { m_Profile.StartTimer(ProfileAddr); }
if ( ( m_Reg.SP_STATUS_REG & SP_STATUS_HALT ) == 0)
{
if ( ( m_Reg.SP_STATUS_REG & SP_STATUS_BROKE ) == 0 )
{
_SystemTimer->SetTimer(CSystemTimer::RspTimer,0x200,false);
}
}
WriteTrace(TraceRSP, "RunRSP: check interrupts");
_Reg->CheckInterrupts();
}