summaryrefslogtreecommitdiffstats
path: root/target-ppc/helper.c
diff options
context:
space:
mode:
authorAndreas Färber2012-04-06 15:09:01 +0200
committerAndreas Färber2012-04-15 17:11:02 +0200
commit6cca7ad686de0270fe30ae303e31c6a27b53d7a9 (patch)
treef5f986015dbf22d024b88cae245a14c17d23c094 /target-ppc/helper.c
parenttarget-ppc: QOM'ify CPU (diff)
downloadqemu-6cca7ad686de0270fe30ae303e31c6a27b53d7a9.tar.gz
qemu-6cca7ad686de0270fe30ae303e31c6a27b53d7a9.tar.xz
qemu-6cca7ad686de0270fe30ae303e31c6a27b53d7a9.zip
target-ppc: Start QOM'ifying CPU init
Move code not dependent on ppc_def_t from cpu_ppc_init() into an initfn. Signed-off-by: Andreas Färber <afaerber@suse.de> Acked-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target-ppc/helper.c')
-rw-r--r--target-ppc/helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c
index 0d904ddb10..c5de0eaa81 100644
--- a/target-ppc/helper.c
+++ b/target-ppc/helper.c
@@ -3196,10 +3196,11 @@ CPUPPCState *cpu_ppc_init (const char *cpu_model)
cpu = POWERPC_CPU(object_new(TYPE_POWERPC_CPU));
env = &cpu->env;
- cpu_exec_init(env);
+
if (tcg_enabled()) {
ppc_translate_init();
}
+
env->cpu_model_str = cpu_model;
cpu_ppc_register_internal(env, def);