]> git.proxmox.com Git - qemu.git/blobdiff - target-moxie/cpu.c
cpu: Partially revert "cpu: Change qemu_init_vcpu() argument to CPUState"
[qemu.git] / target-moxie / cpu.c
index 6550be5b355ffea2d46c6e9424566b88b81b0b90..d97a091eb43e94eff3b7daabf9897d27afcbca39 100644 (file)
@@ -45,10 +45,11 @@ static void moxie_cpu_reset(CPUState *s)
 
 static void moxie_cpu_realizefn(DeviceState *dev, Error **errp)
 {
-    MoxieCPU *cpu = MOXIE_CPU(dev);
+    CPUState *cs = CPU(dev);
     MoxieCPUClass *mcc = MOXIE_CPU_GET_CLASS(dev);
 
-    cpu_reset(CPU(cpu));
+    qemu_init_vcpu(cs);
+    cpu_reset(cs);
 
     mcc->parent_realize(dev, errp);
 }