diff options
| author | Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> | 2026-06-26 14:18:03 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> | 2026-07-06 15:42:18 +0200 |
| commit | 0a8bc0f25151d8d83e193bffc4811b4631460fc5 (patch) | |
| tree | 8ab9d390297f4226f4949fe5a6f049b9d4ae0bb6 /system | |
| parent | d682cd181c57797cd0d5e5d4d9a4895f90129c7c (diff) | |
| download | qemu-0a8bc0f25151d8d83e193bffc4811b4631460fc5.tar.gz qemu-0a8bc0f25151d8d83e193bffc4811b4631460fc5.zip | |
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>
Diffstat (limited to 'system')
| -rw-r--r-- | system/cpus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/cpus.c b/system/cpus.c index b31c825b46..97e5a5edee 100644 --- a/system/cpus.c +++ b/system/cpus.c @@ -344,7 +344,7 @@ bool cpu_can_run(CPUState *cpu) void cpu_handle_guest_debug(CPUState *cpu) { if (replay_running_debug()) { - if (!cpu->singlestep_enabled) { + if (!cpu_single_stepping(cpu)) { /* * Report about the breakpoint and * make a single step to skip it |
