]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/arm: Only include tcg/oversized-guest.h if CONFIG_TCG
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 6 Jun 2023 19:42:58 +0000 (19:42 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 7 Jun 2023 15:35:13 +0000 (08:35 -0700)
Fixes the build for --disable-tcg.

This header is only needed for cross-hosting.  Without CONFIG_TCG,
we know this is an AArch64 host, CONFIG_ATOMIC64 will be set, and
the TCG_OVERSIZED_GUEST block will never be compiled.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/arm/ptw.c

index b2dc223525daa4f3d60c6d4d0a9ec2336516cebe..37bcb17a9eeefaab17cda6e8ff9f8b89c8717aaf 100644 (file)
@@ -14,8 +14,9 @@
 #include "cpu.h"
 #include "internals.h"
 #include "idau.h"
-#include "tcg/oversized-guest.h"
-
+#ifdef CONFIG_TCG
+# include "tcg/oversized-guest.h"
+#endif
 
 typedef struct S1Translate {
     ARMMMUIdx in_mmu_idx;