Fix SPU Loop Detection

This commit is contained in:
Nekotekina 2019-06-20 04:32:19 +03:00
parent 3602d45cb7
commit b9b591bf02
3 changed files with 19 additions and 0 deletions

View file

@ -5200,7 +5200,14 @@ public:
if (res > 1500 && g_cfg.core.spu_loop_detection)
{
_spu->state += cpu_flag::wait;
std::this_thread::yield();
if (_spu->test_stopped())
{
_spu->pc += 4;
spu_runtime::g_escape(_spu);
}
}
return res;