diff options
Diffstat (limited to 'target-sh4/cpu.c')
-rw-r--r-- | target-sh4/cpu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target-sh4/cpu.c b/target-sh4/cpu.c index bda3c51..34b2b57 100644 --- a/target-sh4/cpu.c +++ b/target-sh4/cpu.c @@ -240,10 +240,11 @@ static const TypeInfo sh7785_type_info = { static void superh_cpu_realizefn(DeviceState *dev, Error **errp) { - SuperHCPU *cpu = SUPERH_CPU(dev); + CPUState *cs = CPU(dev); SuperHCPUClass *scc = SUPERH_CPU_GET_CLASS(dev); - cpu_reset(CPU(cpu)); + cpu_reset(cs); + qemu_init_vcpu(cs); scc->parent_realize(dev, errp); } |