mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 14:31:24 +12:00
Update SPU reservation notifier mask
This commit is contained in:
parent
4647f3046e
commit
9fc5f6271b
2 changed files with 3 additions and 3 deletions
|
@ -1004,7 +1004,7 @@ cpu_thread& cpu_thread::operator=(thread_state)
|
||||||
{
|
{
|
||||||
if (u32 resv = atomic_storage<u32>::load(thread->raddr))
|
if (u32 resv = atomic_storage<u32>::load(thread->raddr))
|
||||||
{
|
{
|
||||||
vm::reservation_notifier(resv).notify_one();
|
vm::reservation_notifier(resv).notify_all(-128);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1397,7 +1397,7 @@ error_code sys_spu_thread_group_terminate(ppu_thread& ppu, u32 id, s32 value)
|
||||||
if (prev_resv && prev_resv != resv)
|
if (prev_resv && prev_resv != resv)
|
||||||
{
|
{
|
||||||
// Batch reservation notifications if possible
|
// Batch reservation notifications if possible
|
||||||
vm::reservation_notifier(prev_resv).notify_all();
|
vm::reservation_notifier(prev_resv).notify_all(-128);
|
||||||
}
|
}
|
||||||
|
|
||||||
prev_resv = resv;
|
prev_resv = resv;
|
||||||
|
@ -1407,7 +1407,7 @@ error_code sys_spu_thread_group_terminate(ppu_thread& ppu, u32 id, s32 value)
|
||||||
|
|
||||||
if (prev_resv)
|
if (prev_resv)
|
||||||
{
|
{
|
||||||
vm::reservation_notifier(prev_resv).notify_all();
|
vm::reservation_notifier(prev_resv).notify_all(-128);
|
||||||
}
|
}
|
||||||
|
|
||||||
group->exit_status = value;
|
group->exit_status = value;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue