From 2b52b4a749af10e8e531ef546cf91857a5dc09b0 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sat, 24 Oct 2020 00:55:31 +0300 Subject: [PATCH] SPU: use normal notify() thread function Using raw_notify() everywhere was overkill. --- rpcs3/Emu/Cell/RawSPUThread.cpp | 2 +- rpcs3/Emu/Cell/SPUThread.cpp | 2 +- rpcs3/Emu/Cell/lv2/sys_spu.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/Cell/RawSPUThread.cpp b/rpcs3/Emu/Cell/RawSPUThread.cpp index af8414ed14..6b0a8ef8a0 100644 --- a/rpcs3/Emu/Cell/RawSPUThread.cpp +++ b/rpcs3/Emu/Cell/RawSPUThread.cpp @@ -22,7 +22,7 @@ inline void try_start(spu_thread& spu) }).second) { spu.state -= cpu_flag::stop; - thread_ctrl::raw_notify(static_cast&>(spu)); + thread_ctrl::notify(static_cast&>(spu)); } }; diff --git a/rpcs3/Emu/Cell/SPUThread.cpp b/rpcs3/Emu/Cell/SPUThread.cpp index 97682b1559..5302c79d04 100644 --- a/rpcs3/Emu/Cell/SPUThread.cpp +++ b/rpcs3/Emu/Cell/SPUThread.cpp @@ -3646,7 +3646,7 @@ bool spu_thread::stop_and_signal(u32 code) if (thread.get() != this) { - thread_ctrl::raw_notify(*thread); + thread_ctrl::notify(*thread); } } } diff --git a/rpcs3/Emu/Cell/lv2/sys_spu.cpp b/rpcs3/Emu/Cell/lv2/sys_spu.cpp index c87ee013aa..5a1d525a40 100644 --- a/rpcs3/Emu/Cell/lv2/sys_spu.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_spu.cpp @@ -756,7 +756,7 @@ error_code sys_spu_thread_group_start(ppu_thread& ppu, u32 id) if (thread && ran_threads--) { thread->state -= cpu_flag::stop; - thread_ctrl::raw_notify(*thread); + thread_ctrl::notify(*thread); } } @@ -906,7 +906,7 @@ error_code sys_spu_thread_group_resume(ppu_thread& ppu, u32 id) if (thread) { thread->state -= cpu_flag::suspend; - thread_ctrl::raw_notify(*thread); + thread_ctrl::notify(*thread); } }