summaryrefslogtreecommitdiff
path: root/target-unicore32/helper.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-27 23:25:25 +0100
committerAndreas Färber <afaerber@suse.de>2013-02-01 01:35:43 +0100
commiteeb266ded886185d1d3b0d8bc089ec72df1a2bfd (patch)
tree9093b6870421b96cb1803bb49010c68ba17a6fb0 /target-unicore32/helper.c
parent478032a93d908e59085c1ac56f10979942e7dc4f (diff)
downloadqemu-eeb266ded886185d1d3b0d8bc089ec72df1a2bfd.tar.gz
target-unicore32: Rename CPU subtypes
In the initial conversion of CPU models to QOM types, model names were mapped 1:1 to type names. As a side effect this gained us a type "any", which is now a device. To avoid "-device any" silliness and to pave the way for compiling multiple targets into one executable, adopt a <name>-<arch>-cpu scheme. No functional changes for -cpu arguments. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-unicore32/helper.c')
-rw-r--r--target-unicore32/helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-unicore32/helper.c b/target-unicore32/helper.c
index 183b5b3577..3a92232de5 100644
--- a/target-unicore32/helper.c
+++ b/target-unicore32/helper.c
@@ -38,6 +38,7 @@ CPUUniCore32State *uc32_cpu_init(const char *cpu_model)
}
cpu = UNICORE32_CPU(object_new(object_class_get_name(oc)));
env = &cpu->env;
+ env->cpu_model_str = cpu_model;
if (inited) {
inited = 0;