From 27b28cf6ecf8ccf358cc4ff67385a0b44d066bb1 Mon Sep 17 00:00:00 2001 From: Eladash Date: Thu, 26 May 2022 15:56:00 +0300 Subject: [PATCH] sys_spu: Fix spu_thread_group_terminate deadlock --- rpcs3/Emu/Cell/lv2/sys_spu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcs3/Emu/Cell/lv2/sys_spu.cpp b/rpcs3/Emu/Cell/lv2/sys_spu.cpp index f4991bcab5..3bf52a5a86 100644 --- a/rpcs3/Emu/Cell/lv2/sys_spu.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_spu.cpp @@ -1138,6 +1138,7 @@ error_code sys_spu_thread_group_terminate(ppu_thread& ppu, u32 id, s32 value) lv2_obj::sleep(ppu); busy_wait(3000); ppu.check_state(); + ppu.state += cpu_flag::wait; }; if (auto state = +group->run_state;