summaryrefslogtreecommitdiffstats
path: root/target-cris/cpu.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias2014-01-18 04:42:23 +0100
committerEdgar E. Iglesias2014-02-03 15:03:49 +0100
commitfd5d5afad8e7b92181ddfccd5639be9775456bec (patch)
tree988446b1184b906349c49181fe1980ad056fa954 /target-cris/cpu.c
parentMerge remote-tracking branch 'qmp-unstable/queue/qmp' into staging (diff)
downloadqemu-fd5d5afad8e7b92181ddfccd5639be9775456bec.tar.gz
qemu-fd5d5afad8e7b92181ddfccd5639be9775456bec.tar.xz
qemu-fd5d5afad8e7b92181ddfccd5639be9775456bec.zip
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>
Diffstat (limited to 'target-cris/cpu.c')
-rw-r--r--target-cris/cpu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/target-cris/cpu.c b/target-cris/cpu.c
index 44301a4b10..acb5688e5e 100644
--- a/target-cris/cpu.c
+++ b/target-cris/cpu.c
@@ -66,6 +66,12 @@ static ObjectClass *cris_cpu_class_by_name(const char *cpu_model)
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);
oc = object_class_by_name(typename);
g_free(typename);