projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f61120
)
cris: Add "any" as alias for "crisv32" in user emulation
author
Edgar E. Iglesias
<edgar.iglesias@xilinx.com>
Sat, 18 Jan 2014 03:42:23 +0000
(
03:42
+0000)
committer
Edgar E. Iglesias
<edgar.iglesias@xilinx.com>
Mon, 3 Feb 2014 14:03:49 +0000
(14:03 +0000)
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target-cris/cpu.c
patch
|
blob
|
history
diff --git
a/target-cris/cpu.c
b/target-cris/cpu.c
index 44301a4b108275b02eaebbb077474c5c4196bdd6..acb5688e5efa39a81c15e7c5a33975a213cf6779 100644
(file)
--- 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);