UniCore32CPU *cpu;
CPUUniCore32State *env;
ObjectClass *oc;
- static int inited = 1;
oc = cpu_class_by_name(TYPE_UNICORE32_CPU, cpu_model);
if (oc == NULL) {
env = &cpu->env;
env->cpu_model_str = cpu_model;
- if (inited) {
- inited = 0;
- uc32_translate_init();
- }
+ object_property_set_bool(OBJECT(cpu), true, "realized", NULL);
- qemu_init_vcpu(env);
return env;
}
}
}
-void do_interrupt(CPUUniCore32State *env)
+void uc32_cpu_do_interrupt(CPUState *cs)
{
+ UniCore32CPU *cpu = UNICORE32_CPU(cs);
+ CPUUniCore32State *env = &cpu->env;
+
cpu_abort(env, "NO interrupt in user mode\n");
}