From 0531b3d80170b671b509d0de968b03f4869edf3e Mon Sep 17 00:00:00 2001 From: Eladash Date: Sun, 20 Jun 2021 20:00:12 +0300 Subject: [PATCH] rsx: Fix emulation stopping in cpu_thread::is_paused poll (#10475) Ignore pause flags if thread is stopped. --- rpcs3/Emu/CPU/CPUThread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/CPU/CPUThread.h b/rpcs3/Emu/CPU/CPUThread.h index 5b58a40492..e96d8824bf 100644 --- a/rpcs3/Emu/CPU/CPUThread.h +++ b/rpcs3/Emu/CPU/CPUThread.h @@ -38,7 +38,7 @@ constexpr bool is_stopped(bs_t state) // Test paused state constexpr bool is_paused(bs_t state) { - return !!(state & (cpu_flag::suspend + cpu_flag::dbg_global_pause + cpu_flag::dbg_pause)); + return !!(state & (cpu_flag::suspend + cpu_flag::dbg_global_pause + cpu_flag::dbg_pause)) && !is_stopped(state); } class cpu_thread