diff options
Diffstat (limited to 'target-ppc')
-rw-r--r-- | target-ppc/helper.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c index 176128a3e2..e00b3e6ff6 100644 --- a/target-ppc/helper.c +++ b/target-ppc/helper.c @@ -3091,7 +3091,9 @@ CPUPPCState *cpu_ppc_init (const char *cpu_model) env = qemu_mallocz(sizeof(CPUPPCState)); cpu_exec_init(env); - ppc_translate_init(); + if (tcg_enabled()) { + ppc_translate_init(); + } env->cpu_model_str = cpu_model; cpu_ppc_register_internal(env, def); |