From 9bd44262252aa3074f83e78296df94b906fb9b41 Mon Sep 17 00:00:00 2001 From: Eladash Date: Tue, 6 Jun 2023 08:18:30 +0300 Subject: [PATCH] Fix _sys_interrupt_thread_disestablish with lingering thread copies --- rpcs3/Emu/Cell/lv2/sys_interrupt.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpcs3/Emu/Cell/lv2/sys_interrupt.cpp b/rpcs3/Emu/Cell/lv2/sys_interrupt.cpp index 1fd8f8b79a..9853c8eeee 100644 --- a/rpcs3/Emu/Cell/lv2/sys_interrupt.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_interrupt.cpp @@ -214,6 +214,9 @@ error_code _sys_interrupt_thread_disestablish(ppu_thread& ppu, u32 ih, vm::ptr>(ih)) { *r13 = thread->gpr[13]; + + // It is detached from IDM now so join must be done explicitly now + *thread = thread_state::finished; return CELL_OK; }