Skip to content

Commit f7b55ec

Browse files
knight4u32Ivan
authored and
Ivan
committed
lv2: Add missing reservation disowning in lv2_obj::yield
1 parent e7fc2bf commit f7b55ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rpcs3/Emu/Cell/lv2/lv2.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,12 @@ bool lv2_obj::awake(cpu_thread* const thread, s32 prio)
12101210
bool lv2_obj::yield(cpu_thread& thread)
12111211
{
12121212
vm::temporary_unlock(thread);
1213+
1214+
if (auto ppu = thread.try_get<ppu_thread>())
1215+
{
1216+
ppu->raddr = 0; // Clear reservation
1217+
}
1218+
12131219
return awake(&thread, yield_cmd);
12141220
}
12151221

0 commit comments

Comments
 (0)