[PATCH 09/24] target/arm/mte: Restrict 'exec/ram_addr.h' to system emulation

Philippe Mathieu-Daudé posted 24 patches 1 week, 2 days ago
[PATCH 09/24] target/arm/mte: Restrict 'exec/ram_addr.h' to system emulation
Posted by Philippe Mathieu-Daudé 1 week, 2 days ago
"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é <philmd@linaro.org>
---
 target/arm/tcg/mte_helper.c | 2 ++
 1 file changed, 2 insertions(+)

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"
-- 
2.45.2


Re: [PATCH 09/24] target/arm/mte: Restrict 'exec/ram_addr.h' to system emulation
Posted by Richard Henderson 1 week, 1 day ago
On 11/13/24 17:12, Philippe Mathieu-Daudé wrote:
> "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é<philmd@linaro.org>
> ---
>   target/arm/tcg/mte_helper.c | 2 ++
>   1 file changed, 2 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~

Re: [PATCH 09/24] target/arm/mte: Restrict 'exec/ram_addr.h' to system emulation
Posted by Pierrick Bouvier 1 week, 2 days ago

On 11/13/24 17:12, Philippe Mathieu-Daudé wrote:
> "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é <philmd@linaro.org>
> ---
>   target/arm/tcg/mte_helper.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> 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"

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>