Recompiler: Add perm loop check for R4300i_REGIMM_BGEZ in CheckLoopRegisterUsage

This commit is contained in:
zilmar 2012-11-17 11:53:29 +11:00
parent 8242822aa1
commit ca161dfd07
1 changed files with 3 additions and 5 deletions

View File

@ -240,13 +240,11 @@ bool LoopAnalysis::CheckLoopRegisterUsage( CCodeSection * Section)
_Notify->BreakPoint(__FILE__,__LINE__); _Notify->BreakPoint(__FILE__,__LINE__);
} }
if (m_PC == Section->m_Jump.TargetPC) if (m_PC == Section->m_Jump.TargetPC)
{
if (!DelaySlotEffectsCompare(m_PC,m_Command.rs,0) && !Section->m_Jump.PermLoop)
{ {
_Notify->BreakPoint(__FILE__,__LINE__); _Notify->BreakPoint(__FILE__,__LINE__);
#ifdef tofix
if (!DelaySlotEffectsCompare(m_PC,m_Command.rs,m_Command.rt)) {
Section->m_Jump.PermLoop = true;
} }
#endif
} }
#endif #endif
break; break;