debugger: Fix single stepping (#9793)

This commit is contained in:
Eladash 2021-02-19 13:53:09 +02:00 committed by GitHub
parent e76d8eb046
commit 20eb4352fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 58 additions and 11 deletions

View file

@ -455,7 +455,7 @@ extern void ppu_register_function_at(u32 addr, u32 size, ppu_function_t ptr)
static bool ppu_break(ppu_thread& ppu, ppu_opcode_t op)
{
// Pause
ppu.state += cpu_flag::dbg_pause;
ppu.state.atomic_op([](bs_t<cpu_flag>& state) { if (!(state & cpu_flag::dbg_step)) state += cpu_flag::dbg_pause; });
if (ppu.check_state())
{