mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
Remove throwing and catching cpu_flag::stop
Since there is spu_runtime::g_escape function now.
This commit is contained in:
parent
e74a311931
commit
ccac9d4777
4 changed files with 7 additions and 29 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue