]> git.proxmox.com Git - qemu.git/blobdiff - target-s390x/cpu.c
cpu: Partially revert "cpu: Change qemu_init_vcpu() argument to CPUState"
[qemu.git] / target-s390x / cpu.c
index 1d16da3787d2c04931d545231c033604972cfa30..9b824957f6949a292c9b18f9bd7549b83f635a76 100644 (file)
@@ -101,10 +101,11 @@ static void s390_cpu_machine_reset_cb(void *opaque)
 
 static void s390_cpu_realizefn(DeviceState *dev, Error **errp)
 {
-    S390CPU *cpu = S390_CPU(dev);
+    CPUState *cs = CPU(dev);
     S390CPUClass *scc = S390_CPU_GET_CLASS(dev);
 
-    cpu_reset(CPU(cpu));
+    qemu_init_vcpu(cs);
+    cpu_reset(cs);
 
     scc->parent_realize(dev, errp);
 }