summaryrefslogtreecommitdiff
path: root/target-s390x
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-08-02 16:10:21 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2011-08-05 10:57:36 -0500
commitd5ab9713d2d4037fd56b0adddd26c8d4dc11cf09 (patch)
treeba4403df5a9b47e6ff26bce8db41864ca665c5ce /target-s390x
parent8417cebfda193c7f9ca70be5e308eaa92cf84b94 (diff)
downloadqemu-d5ab9713d2d4037fd56b0adddd26c8d4dc11cf09.tar.gz
qemu-d5ab9713d2d4037fd56b0adddd26c8d4dc11cf09.tar.bz2
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-s390x')
-rw-r--r--target-s390x/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-s390x/helper.c b/target-s390x/helper.c
index 1ce7079af7..443bb1d8d6 100644
--- a/target-s390x/helper.c
+++ b/target-s390x/helper.c
@@ -81,7 +81,7 @@ CPUS390XState *cpu_s390x_init(const char *cpu_model)
env = qemu_mallocz(sizeof(CPUS390XState));
cpu_exec_init(env);
- if (!inited) {
+ if (tcg_enabled() && !inited) {
inited = 1;
s390x_translate_init();
}