Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rth7680 committed Jun 7, 2023
1 parent 0cabaef commit 007cd17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions target/arm/ptw.c
Expand Up @@ -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;
Expand Down

0 comments on commit 007cd17

Please sign in to comment.