Skip to content

Commit

Permalink
CPUThread.cpp: Fix cpu_flag::pending reset
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 committed Aug 11, 2022
1 parent 815c1ce commit 797eeab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rpcs3/Emu/CPU/CPUThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,14 +775,12 @@ bool cpu_thread::check_state() noexcept
cpu_counter::add(this);
}

constexpr auto pending_and_temp = (cpu_flag::pending + cpu_flag::temp);

if ((state0 & pending_and_temp) == cpu_flag::pending)
if (cpu_can_stop && state0 & cpu_flag::pending)
{
// Execute pending work
cpu_work();

if ((state1 ^ state) - pending_and_temp)
if ((state1 ^ state) - cpu_flag::pending)
{
// Work could have changed flags
// Reset internal flags as if check_state() has just been called
Expand Down

0 comments on commit 797eeab

Please sign in to comment.