summaryrefslogtreecommitdiff
path: root/target-unicore32/helper.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-05 14:38:30 +0100
committerAndreas Färber <afaerber@suse.de>2013-02-16 14:50:57 +0100
commit088383e3220776917f538d0e43933e842e16b804 (patch)
tree4990e8a12b227826fa3b9f9f3496a7dde8b2c22c /target-unicore32/helper.c
parentb6e91ebfe06f1d90331d162259553a5330514143 (diff)
downloadqemu-088383e3220776917f538d0e43933e842e16b804.tar.gz
target-unicore32: Introduce QOM realizefn for UniCore32CPU
Introduce a realizefn and set realized = true in uc32_cpu_init(). Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn> [AF: Invoke the parent's realizefn] Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-unicore32/helper.c')
-rw-r--r--target-unicore32/helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target-unicore32/helper.c b/target-unicore32/helper.c
index 3a92232de5..2442133319 100644
--- a/target-unicore32/helper.c
+++ b/target-unicore32/helper.c
@@ -45,7 +45,8 @@ CPUUniCore32State *uc32_cpu_init(const char *cpu_model)
uc32_translate_init();
}
- qemu_init_vcpu(env);
+ object_property_set_bool(OBJECT(cpu), true, "realized", NULL);
+
return env;
}