summaryrefslogtreecommitdiff
path: root/target-arm/helper.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-19 07:37:45 +0100
committerAndreas Färber <afaerber@suse.de>2013-02-16 14:50:58 +0100
commit79614b781df5096ffecf531992314781dbab54af (patch)
tree7c781ec40afe10ba31eed252d420c35d0d6c9266 /target-arm/helper.c
parent5f6c964389ea5320e81e2fb8c2bc3aa40c5a8013 (diff)
downloadqemu-79614b781df5096ffecf531992314781dbab54af.zip
target-arm: Move TCG initialization to ARMCPU initfn
Ensures that a QOM-created ARMCPU is usable. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-arm/helper.c')
-rw-r--r--target-arm/helper.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/target-arm/helper.c b/target-arm/helper.c
index 4538a09445..e63da57a51 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -1263,7 +1263,6 @@ ARMCPU *cpu_arm_init(const char *cpu_model)
ARMCPU *cpu;
CPUARMState *env;
ObjectClass *oc;
- static int inited = 0;
oc = cpu_class_by_name(TYPE_ARM_CPU, cpu_model);
if (!oc) {
@@ -1276,11 +1275,6 @@ ARMCPU *cpu_arm_init(const char *cpu_model)
/* TODO this should be set centrally, once possible */
object_property_set_bool(OBJECT(cpu), true, "realized", NULL);
- if (tcg_enabled() && !inited) {
- inited = 1;
- arm_translate_init();
- }
-
return cpu;
}