@samitouri / QOSamiQemu / commits / c0df53752c

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>

Philippe Mathieu-Daudé committed Jun 26, 2026 at 15:16 UTC c0df53752c86e5f51e12e7b99501b6f4d2e52c01
1 file changed +1 -1
include/hw/core/cpu.h
+1 -1
@@ -1146,7 +1146,7 @@ void cpu_single_step(CPUState *cpu, unsigned flags);
1146 */
1147 static inline bool cpu_single_stepping(const CPUState *cpu)
1148 {
1149 - return cpu->singlestep_flags;
1149 + return cpu->singlestep_flags & SSTEP_ENABLE;
1150 }
1151
1152 int cpu_breakpoint_insert(CPUState *cpu, vaddr pc, int flags,