From 729cd9284edbac224cff603b66f5115e0000d924 Mon Sep 17 00:00:00 2001 From: Eladash Date: Fri, 12 Mar 2021 10:18:50 +0200 Subject: [PATCH] debugger: Fix PPU threads pausing --- rpcs3/Emu/Cell/lv2/lv2.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpcs3/Emu/Cell/lv2/lv2.cpp b/rpcs3/Emu/Cell/lv2/lv2.cpp index 8441752085..6fc3b115f2 100644 --- a/rpcs3/Emu/Cell/lv2/lv2.cpp +++ b/rpcs3/Emu/Cell/lv2/lv2.cpp @@ -1333,6 +1333,11 @@ bool lv2_obj::awake_unlocked(cpu_thread* cpu, s32 prio) { ppu_log.trace("suspend(): %s", target->id); g_pending.emplace_back(target); + + if (is_paused(target->state - cpu_flag::suspend)) + { + target->state.notify_one(cpu_flag::suspend); + } } }