mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:56:38 +00:00
cpu: Introduce cpu_single_stepping() helper
Access CPUState::@singlestep_enabled field with a helper. Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20260705215729.62196-31-philmd@oss.qualcomm.com>
This commit is contained in:
@@ -1138,6 +1138,17 @@ void qemu_init_vcpu(CPUState *cpu);
|
||||
*/
|
||||
void cpu_single_step(CPUState *cpu, int enabled);
|
||||
|
||||
/**
|
||||
* cpu_single_stepping:
|
||||
* @cpu: The vCPU to check
|
||||
*
|
||||
* Returns whether the vCPU has single-stepping enabled.
|
||||
*/
|
||||
static inline bool cpu_single_stepping(const CPUState *cpu)
|
||||
{
|
||||
return cpu->singlestep_enabled;
|
||||
}
|
||||
|
||||
int cpu_breakpoint_insert(CPUState *cpu, vaddr pc, int flags,
|
||||
CPUBreakpoint **breakpoint);
|
||||
int cpu_breakpoint_remove(CPUState *cpu, vaddr pc, int flags);
|
||||
|
||||
Reference in New Issue
Block a user