summaryrefslogtreecommitdiffstats
path: root/cpu.c
diff options
context:
space:
mode:
authorRichard Henderson2021-07-19 22:43:46 +0200
committerRichard Henderson2021-07-21 19:47:05 +0200
commitc2ffd7549b14373e9ca68eccd84fab141ffde646 (patch)
tree0362efe97ae88aa9d357b92c4ff052a142a55ca3 /cpu.c
parentaccel/tcg: Hoist tb_cflags to a local in translator_loop (diff)
downloadqemu-c2ffd7549b14373e9ca68eccd84fab141ffde646.tar.gz
qemu-c2ffd7549b14373e9ca68eccd84fab141ffde646.tar.xz
qemu-c2ffd7549b14373e9ca68eccd84fab141ffde646.zip
accel/tcg: Record singlestep_enabled in tb->cflags
Set CF_SINGLE_STEP when single-stepping is enabled. This avoids the need to flush all tb's when turning single-stepping on or off. Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'cpu.c')
-rw-r--r--cpu.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/cpu.c b/cpu.c
index d6ae5ae581..e1799a15bc 100644
--- a/cpu.c
+++ b/cpu.c
@@ -326,10 +326,6 @@ void cpu_single_step(CPUState *cpu, int enabled)
cpu->singlestep_enabled = enabled;
if (kvm_enabled()) {
kvm_update_guest_debug(cpu, 0);
- } else {
- /* must flush all the translated code to avoid inconsistencies */
- /* XXX: only flush what is necessary */
- tb_flush(cpu);
}
trace_breakpoint_singlestep(cpu->cpu_index, enabled);
}