From 74d7fc7f6385158b8a5c524c61baaef1b66f3dac Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 26 Oct 2017 15:58:14 +0200 Subject: tcg: Avoid setting tcg_initialize if !CONFIG_TCG Fix the build for --disable-tcg. Fixes: 55c3ceef61fcf06fc98ddc752b7cce788ce7680b Signed-off-by: Richard Henderson Reviewed-by: Eduardo Habkost Message-id: 20171026135814.20773-1-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- target/ppc/translate_init.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target/ppc') 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"; } -- cgit v1.1