Changed the RSP test to be one if statement

This commit is contained in:
zilmar 2012-11-02 17:05:08 +11:00
parent 276cc23541
commit 9c245e3c39
1 changed files with 2 additions and 5 deletions

View File

@ -1592,12 +1592,9 @@ 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_HALT ) == 0 && ( m_Reg.SP_STATUS_REG & SP_STATUS_BROKE ) == 0)
{
if ( ( m_Reg.SP_STATUS_REG & SP_STATUS_BROKE ) == 0 )
{
_SystemTimer->SetTimer(CSystemTimer::RspTimer,0x200,false);
}
_SystemTimer->SetTimer(CSystemTimer::RspTimer,0x200,false);
}
WriteTrace(TraceRSP, "RunRSP: check interrupts");
_Reg->CheckInterrupts();