]> git.proxmox.com Git - mirror_qemu.git/blobdiff - exec.c
cpu: Change cpu_single_step() argument to CPUState
[mirror_qemu.git] / exec.c
diff --git a/exec.c b/exec.c
index 30b676d7e591052857f113c6d35df420d1613cca..9cd936c5dfa1eea23282ba34981ce89454f6d850 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -585,10 +585,10 @@ void cpu_breakpoint_remove_all(CPUArchState *env, int mask)
 
 /* enable or disable single step mode. EXCP_DEBUG is returned by the
    CPU loop after each instruction */
-void cpu_single_step(CPUArchState *env, int enabled)
+void cpu_single_step(CPUState *cpu, int enabled)
 {
 #if defined(TARGET_HAS_ICE)
-    CPUState *cpu = ENV_GET_CPU(env);
+    CPUArchState *env = cpu->env_ptr;
 
     if (cpu->singlestep_enabled != enabled) {
         cpu->singlestep_enabled = enabled;