PPU Decoder Cache improved

This commit is contained in:
Nekotekina 2015-08-10 22:39:52 +03:00
parent eb63558c6d
commit be9a599beb
13 changed files with 118 additions and 467 deletions

View file

@ -263,7 +263,10 @@ bool CPUThread::check_status()
{
CHECK_EMU_STATUS; // check at least once
if (!is_paused()) break;
if (!is_paused() && (m_state.load() & CPU_STATE_INTR) == 0)
{
break;
}
if (!lock)
{
@ -271,6 +274,11 @@ bool CPUThread::check_status()
continue;
}
if (!is_paused() && (m_state.load() & CPU_STATE_INTR) != 0 && handle_interrupt())
{
continue;
}
cv.wait(lock);
}