1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

lv2: Add missing reservation disowning in lv2_obj::yield

This commit is contained in:
Eladash 2021-11-21 11:26:38 +02:00 committed by Ivan
parent e7fc2bfa3b
commit f7b55ec8d4

View File

@ -1210,6 +1210,12 @@ bool lv2_obj::awake(cpu_thread* const thread, s32 prio)
bool lv2_obj::yield(cpu_thread& thread)
{
vm::temporary_unlock(thread);
if (auto ppu = thread.try_get<ppu_thread>())
{
ppu->raddr = 0; // Clear reservation
}
return awake(&thread, yield_cmd);
}