diff options
Diffstat (limited to 'target-cris/cpu.c')
-rw-r--r-- | target-cris/cpu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target-cris/cpu.c b/target-cris/cpu.c index 93c7e005f8..c596609bd4 100644 --- a/target-cris/cpu.c +++ b/target-cris/cpu.c @@ -55,6 +55,14 @@ static void cris_cpu_reset(CPUState *s) #endif } +static void cris_cpu_initfn(Object *obj) +{ + CRISCPU *cpu = CRIS_CPU(obj); + CPUCRISState *env = &cpu->env; + + cpu_exec_init(env); +} + static void cris_cpu_class_init(ObjectClass *oc, void *data) { CPUClass *cc = CPU_CLASS(oc); @@ -68,6 +76,7 @@ static const TypeInfo cris_cpu_type_info = { .name = TYPE_CRIS_CPU, .parent = TYPE_CPU, .instance_size = sizeof(CRISCPU), + .instance_init = cris_cpu_initfn, .abstract = false, .class_size = sizeof(CRISCPUClass), .class_init = cris_cpu_class_init, |