aboutsummaryrefslogtreecommitdiff
path: root/target-sh4/translate.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-04-23 18:16:02 +0200
committerAndreas Färber <afaerber@suse.de>2013-02-16 14:50:57 +0100
commit55acb588dd184a1e33be0ff1fe23f8c19f88fd6c (patch)
treeff02717758cb0f6f49e24871aa110eb3bbdf2aac /target-sh4/translate.c
parent1f1366322b21678c33003a373366697a4542d2d4 (diff)
target-sh4: Introduce QOM realizefn for SuperHCPU
Introduce a realizefn and set realized = true in cpu_sh4_init(). Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-sh4/translate.c')
-rw-r--r--target-sh4/translate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c
index 260aaab559..2409a103b2 100644
--- a/target-sh4/translate.c
+++ b/target-sh4/translate.c
@@ -253,9 +253,10 @@ SuperHCPU *cpu_sh4_init(const char *cpu_model)
env->features = def->features;
sh4_translate_init();
env->cpu_model_str = cpu_model;
- cpu_reset(CPU(cpu));
cpu_register(env, def);
- qemu_init_vcpu(env);
+
+ object_property_set_bool(OBJECT(cpu), true, "realized", NULL);
+
return cpu;
}