TLB_FLAGS defines are based on TARGET_PAGE_BITS_MIN, which is defined for every target. In the next commit, we'll introduce a non-static define for TARGET_PAGE_BITS_MIN in common code, thus, we can't check this at compile time, except in target specific code. Signed-off-by: Pierrick Bouvier <pierrick.bouvier@xxxxxxxxxx> --- include/exec/cpu-all.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h index 6dd71eb0de9..7c6c47c43ed 100644 --- a/include/exec/cpu-all.h +++ b/include/exec/cpu-all.h @@ -112,8 +112,10 @@ static inline int cpu_mmu_index(CPUState *cs, bool ifetch) #define TLB_SLOW_FLAGS_MASK (TLB_BSWAP | TLB_WATCHPOINT | TLB_CHECK_ALIGNED) +#ifdef COMPILING_PER_TARGET /* The two sets of flags must not overlap. */ QEMU_BUILD_BUG_ON(TLB_FLAGS_MASK & TLB_SLOW_FLAGS_MASK); +#endif #endif /* !CONFIG_USER_ONLY */ -- 2.39.5