mirror of https://github.com/proxmox/mirror_qemu
cris: Add "any" as alias for "crisv32" in user emulation
Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>master
parent
2f61120c10
commit
fd5d5afad8
|
@ -66,6 +66,12 @@ static ObjectClass *cris_cpu_class_by_name(const char *cpu_model)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(CONFIG_USER_ONLY)
|
||||||
|
if (strcasecmp(cpu_model, "any") == 0) {
|
||||||
|
return object_class_by_name("crisv32-" TYPE_CRIS_CPU);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
typename = g_strdup_printf("%s-" TYPE_CRIS_CPU, cpu_model);
|
typename = g_strdup_printf("%s-" TYPE_CRIS_CPU, cpu_model);
|
||||||
oc = object_class_by_name(typename);
|
oc = object_class_by_name(typename);
|
||||||
g_free(typename);
|
g_free(typename);
|
||||||
|
|
Loading…
Reference in New Issue