aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-06-06 19:42:58 +0000
committerRichard Henderson <richard.henderson@linaro.org>2023-06-07 08:35:13 -0700
commit007cd176e590c77e91d1531ec5acbe86b15b0f00 (patch)
tree44f9ac2b7f04cc86e66473f7d1006f97d8fd6f28 /target
parent0cabaef3ed13697e2da0ceb18b3da9e21d0b4d83 (diff)
downloadqemu-007cd176e590c77e91d1531ec5acbe86b15b0f00.zip
qemu-007cd176e590c77e91d1531ec5acbe86b15b0f00.tar.gz
qemu-007cd176e590c77e91d1531ec5acbe86b15b0f00.tar.bz2
target/arm: Only include tcg/oversized-guest.h if CONFIG_TCG
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>
Diffstat (limited to 'target')
-rw-r--r--target/arm/ptw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/arm/ptw.c b/target/arm/ptw.c
index b2dc223..37bcb17 100644
--- a/target/arm/ptw.c
+++ b/target/arm/ptw.c
@@ -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;