]> git.proxmox.com Git - qemu.git/blobdiff - target-cris/cpu.c
Merge remote-tracking branch 'kwolf/for-anthony' into staging
[qemu.git] / target-cris / cpu.c
index 45f2d6bacf7c73cedf0b841cfd24dddb7c426aba..44301a4b108275b02eaebbb077474c5c4196bdd6 100644 (file)
@@ -137,10 +137,11 @@ void cris_cpu_list(FILE *f, fprintf_function cpu_fprintf)
 
 static void cris_cpu_realizefn(DeviceState *dev, Error **errp)
 {
-    CRISCPU *cpu = CRIS_CPU(dev);
+    CPUState *cs = CPU(dev);
     CRISCPUClass *ccc = CRIS_CPU_GET_CLASS(dev);
 
-    cpu_reset(CPU(cpu));
+    cpu_reset(cs);
+    qemu_init_vcpu(cs);
 
     ccc->parent_realize(dev, errp);
 }