aboutsummaryrefslogtreecommitdiff
path: root/target-mips/translate.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-16 03:48:37 +0100
committerAndreas Färber <afaerber@suse.de>2013-02-16 14:50:57 +0100
commitc1caf1d961288e41c25de6631c6751ae7baa20f0 (patch)
tree282ab0ab9836b6b8abf8bd4db576be18159dc93d /target-mips/translate.c
parent746b03b27cac48be5a376d8635ffaf568339ebd7 (diff)
downloadqemu-c1caf1d961288e41c25de6631c6751ae7baa20f0.zip
qemu-c1caf1d961288e41c25de6631c6751ae7baa20f0.tar.gz
qemu-c1caf1d961288e41c25de6631c6751ae7baa20f0.tar.bz2
target-mips: Introduce QOM realizefn for MIPSCPU
Introduce a realizefn and set realized = true from cpu_mips_init(). Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-mips/translate.c')
-rw-r--r--target-mips/translate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c
index 3b77b53..d7f650e 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -15916,8 +15916,9 @@ MIPSCPU *cpu_mips_init(const char *cpu_model)
fpu_init(env, def);
mvp_init(env, def);
mips_tcg_init();
- cpu_reset(CPU(cpu));
- qemu_init_vcpu(env);
+
+ object_property_set_bool(OBJECT(cpu), true, "realized", NULL);
+
return cpu;
}