]> git.proxmox.com Git - qemu.git/blobdiff - target-openrisc/cpu.c
Merge remote-tracking branch 'mst/tags/for_anthony' into staging
[qemu.git] / target-openrisc / cpu.c
index aa269fb7a6b01a0502c0fd3791abb157f95a9e21..075f00a89768c73871e2896960fe4411925873da 100644 (file)
@@ -66,10 +66,11 @@ static inline void set_feature(OpenRISCCPU *cpu, int feature)
 
 static void openrisc_cpu_realizefn(DeviceState *dev, Error **errp)
 {
-    OpenRISCCPU *cpu = OPENRISC_CPU(dev);
+    CPUState *cs = CPU(dev);
     OpenRISCCPUClass *occ = OPENRISC_CPU_GET_CLASS(dev);
 
-    cpu_reset(CPU(cpu));
+    qemu_init_vcpu(cs);
+    cpu_reset(cs);
 
     occ->parent_realize(dev, errp);
 }