aboutsummaryrefslogtreecommitdiff
path: root/target/ppc
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2017-10-26 15:58:14 +0200
committerPeter Maydell <peter.maydell@linaro.org>2017-10-26 17:47:36 +0100
commit74d7fc7f6385158b8a5c524c61baaef1b66f3dac (patch)
treeb103a5e976e50881bdb0a73eb4a09d754e1506bb /target/ppc
parent325a084c1ebccb265a3c8f1dd092ffbbfb448a00 (diff)
downloadqemu-74d7fc7f6385158b8a5c524c61baaef1b66f3dac.zip
qemu-74d7fc7f6385158b8a5c524c61baaef1b66f3dac.tar.gz
qemu-74d7fc7f6385158b8a5c524c61baaef1b66f3dac.tar.bz2
tcg: Avoid setting tcg_initialize if !CONFIG_TCG
Fix the build for --disable-tcg. Fixes: 55c3ceef61fcf06fc98ddc752b7cce788ce7680b Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Message-id: 20171026135814.20773-1-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/ppc')
-rw-r--r--target/ppc/translate_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/ppc/translate_init.c b/target/ppc/translate_init.c
index 13436e4..61a9552 100644
--- a/target/ppc/translate_init.c
+++ b/target/ppc/translate_init.c
@@ -10578,7 +10578,9 @@ static void ppc_cpu_class_init(ObjectClass *oc, void *data)
#ifndef CONFIG_USER_ONLY
cc->virtio_is_big_endian = ppc_cpu_is_big_endian;
#endif
+#ifdef CONFIG_TCG
cc->tcg_initialize = ppc_translate_init;
+#endif
dc->fw_name = "PowerPC,UNKNOWN";
}