]> git.proxmox.com Git - qemu.git/blobdiff - target-sparc/cpu.c
cpu: Move cpu_index field to CPUState
[qemu.git] / target-sparc / cpu.c
index 882d30642a8ebd13566dc142e2599f23c389a53a..f404aa8b5fb6922d578d76fad6d03b2a6a395d17 100644 (file)
@@ -31,7 +31,7 @@ static void sparc_cpu_reset(CPUState *s)
     CPUSPARCState *env = &cpu->env;
 
     if (qemu_loglevel_mask(CPU_LOG_RESET)) {
-        qemu_log("CPU Reset (CPU %d)\n", env->cpu_index);
+        qemu_log("CPU Reset (CPU %d)\n", s->cpu_index);
         log_cpu_state(env, 0);
     }