Remove throwing and catching cpu_flag::stop

Since there is spu_runtime::g_escape function now.
This commit is contained in:
Nekotekina 2019-11-08 01:36:19 +03:00
parent e74a311931
commit ccac9d4777
4 changed files with 7 additions and 29 deletions

View file

@ -3125,7 +3125,8 @@ void spu_thread::halt()
int_ctrl[2].set(SPU_INT2_STAT_SPU_HALT_OR_STEP_INT);
throw cpu_flag::stop;
state += cpu_flag::stop;
spu_runtime::g_escape(this);
}
status |= SPU_STATUS_STOPPED_BY_HALT;
@ -3144,15 +3145,7 @@ void spu_thread::fast_call(u32 ls_addr)
pc = ls_addr;
gpr[0]._u32[3] = 0x0;
try
{
cpu_task();
}
catch (cpu_flag _s)
{
state += _s;
if (_s != cpu_flag::ret) throw;
}
cpu_task();
state -= cpu_flag::ret;