From: Philippe Mathieu-Daudé Date: Wed, 13 Nov 2024 22:21:26 +0000 (+0100) Subject: target/arm/mte: Restrict 'exec/ram_addr.h' to system emulation X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a6b3f532852463400c4602418f40628b6b9d24ad;p=qemu.git target/arm/mte: Restrict 'exec/ram_addr.h' to system emulation "exec/ram_addr.h" contains system specific declarations. Restrict its inclusion to sysemu to avoid build errors when refactoring. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Reviewed-by: Richard Henderson Message-Id: <20241114011310.3615-10-philmd@linaro.org> --- diff --git a/target/arm/tcg/mte_helper.c b/target/arm/tcg/mte_helper.c index 9d2ba287ee..b017b26d07 100644 --- a/target/arm/tcg/mte_helper.c +++ b/target/arm/tcg/mte_helper.c @@ -23,7 +23,9 @@ #include "internals.h" #include "exec/exec-all.h" #include "exec/page-protection.h" +#ifndef CONFIG_USER_ONLY #include "exec/ram_addr.h" +#endif #include "exec/cpu_ldst.h" #include "exec/helper-proto.h" #include "hw/core/tcg-cpu-ops.h"