diff options
author | Jan Kiszka | 2011-08-02 16:10:21 +0200 |
---|---|---|
committer | Anthony Liguori | 2011-08-05 17:57:36 +0200 |
commit | d5ab9713d2d4037fd56b0adddd26c8d4dc11cf09 (patch) | |
tree | ba4403df5a9b47e6ff26bce8db41864ca665c5ce /target-ppc/helper.c | |
parent | memory: use signed arithmetic (diff) | |
download | qemu-d5ab9713d2d4037fd56b0adddd26c8d4dc11cf09.tar.gz qemu-d5ab9713d2d4037fd56b0adddd26c8d4dc11cf09.tar.xz qemu-d5ab9713d2d4037fd56b0adddd26c8d4dc11cf09.zip |
Avoid allocating TCG resources in non-TCG mode
Do not allocate TCG-only resources like the translation buffer when
running over KVM or XEN. Saves a "few" bytes in the qemu address space
and is also conceptually cleaner.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-ppc/helper.c')
-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); |