From a4896eb6dff4460d109d77c88985cf21c1048505 Mon Sep 17 00:00:00 2001 From: Eladash Date: Mon, 12 Aug 2019 07:58:13 +0300 Subject: [PATCH] Fix race on cellVdecClose TLS cleanup --- rpcs3/Emu/Cell/Modules/cellVdec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellVdec.cpp b/rpcs3/Emu/Cell/Modules/cellVdec.cpp index c46805c2aa..9268acb45c 100644 --- a/rpcs3/Emu/Cell/Modules/cellVdec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVdec.cpp @@ -395,7 +395,7 @@ static void vdecEntry(ppu_thread& ppu, u32 vid) { idm::get(vid)->exec(ppu, vid); - _sys_ppu_thread_exit(ppu, 0); + ppu.state += cpu_flag::exit; } static u32 vdecQueryAttr(s32 type, u32 profile, u32 spec_addr /* may be 0 */, vm::ptr attr)