mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
LV2: Minor optimization regarding signal flag
This commit is contained in:
parent
dc851a729e
commit
2eebbd307d
11 changed files with 24 additions and 26 deletions
|
|
@ -191,9 +191,9 @@ error_code sys_event_flag_wait(ppu_thread& ppu, u32 id, u64 bitptn, u32 mode, vm
|
|||
return CELL_OK;
|
||||
}
|
||||
|
||||
while (auto state = ppu.state.fetch_sub(cpu_flag::signal))
|
||||
while (auto state = +ppu.state)
|
||||
{
|
||||
if (state & cpu_flag::signal)
|
||||
if (state & cpu_flag::signal && ppu.state.test_and_reset(cpu_flag::signal))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue