Commit c0df53752c for qemu.org
commit c0df53752c86e5f51e12e7b99501b6f4d2e52c01
Author: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Date: Fri Jun 26 15:16:02 2026 +0200
cpu: Only check SSTEP_ENABLE flag in cpu_single_stepping()
Only the SSTEP_ENABLE bitmask means single-step is enabled.
Fixes: 60897d369f1 ("Debugger single step without interrupts")
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Reviewed-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20260705215729.62196-33-philmd@oss.qualcomm.com>
diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h
index db4865bd63..b54035fb13 100644
--- a/include/hw/core/cpu.h
+++ b/include/hw/core/cpu.h
@@ -1146,7 +1146,7 @@ void cpu_single_step(CPUState *cpu, unsigned flags);
*/
static inline bool cpu_single_stepping(const CPUState *cpu)
{
- return cpu->singlestep_flags;
+ return cpu->singlestep_flags & SSTEP_ENABLE;
}
int cpu_breakpoint_insert(CPUState *cpu, vaddr pc, int flags,