mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
lv2: Add missing reservation disowning in lv2_obj::yield
This commit is contained in:
parent
e7fc2bfa3b
commit
f7b55ec8d4
1 changed files with 6 additions and 0 deletions
|
@ -1210,6 +1210,12 @@ bool lv2_obj::awake(cpu_thread* const thread, s32 prio)
|
||||||
bool lv2_obj::yield(cpu_thread& thread)
|
bool lv2_obj::yield(cpu_thread& thread)
|
||||||
{
|
{
|
||||||
vm::temporary_unlock(thread);
|
vm::temporary_unlock(thread);
|
||||||
|
|
||||||
|
if (auto ppu = thread.try_get<ppu_thread>())
|
||||||
|
{
|
||||||
|
ppu->raddr = 0; // Clear reservation
|
||||||
|
}
|
||||||
|
|
||||||
return awake(&thread, yield_cmd);
|
return awake(&thread, yield_cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue