Message ID | 5105AB1A.3040802@suse.de |
---|---|
State | New |
Headers | show |
diff --git a/target-unicore32/helper.c b/target-unicore32/helper.c index 7ace68c..183b5b3 100644 --- a/target-unicore32/helper.c +++ b/target-unicore32/helper.c @@ -36,7 +36,7 @@ CPUUniCore32State *uc32_cpu_init(const char *cpu_model) if (oc == NULL) { return NULL; } - cpu = UNICORE32_CPU(object_new(cpu_model)); + cpu = UNICORE32_CPU(object_new(object_class_get_name(oc))); env = &cpu->env; if (inited) {