aboutsummaryrefslogtreecommitdiff
path: root/target/ppc
diff options
context:
space:
mode:
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";
}