summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPierrick Bouvier <pierrick.bouvier@linaro.org>2025-05-12 11:04:58 -0700
committerPeter Maydell <peter.maydell@linaro.org>2025-05-14 15:12:40 +0100
commitcbf565b00fb350eb2d2b79fce437ee88060fd3f9 (patch)
tree2fb274f902e34419e49f0e5f6eb0dc1ea716e6f0
parentb586c86a8ea1bbf2bc7070153b38b8c75ff8b979 (diff)
downloadfocaccia-qemu-cbf565b00fb350eb2d2b79fce437ee88060fd3f9.tar.gz
focaccia-qemu-cbf565b00fb350eb2d2b79fce437ee88060fd3f9.zip
target/arm/tcg/tlb_helper: compile file twice (system, user)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-id: 20250512180502.2395029-45-pierrick.bouvier@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--target/arm/tcg/meson.build3
-rw-r--r--target/arm/tcg/tlb_helper.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/target/arm/tcg/meson.build b/target/arm/tcg/meson.build
index af786196d2..49c8f4390a 100644
--- a/target/arm/tcg/meson.build
+++ b/target/arm/tcg/meson.build
@@ -33,7 +33,6 @@ arm_ss.add(files(
   'm_helper.c',
   'mve_helper.c',
   'op_helper.c',
-  'tlb_helper.c',
   'vec_helper.c',
   'tlb-insns.c',
   'arith_helper.c',
@@ -68,9 +67,11 @@ arm_common_system_ss.add(files(
   'hflags.c',
   'iwmmxt_helper.c',
   'neon_helper.c',
+  'tlb_helper.c',
 ))
 arm_user_ss.add(files(
   'hflags.c',
   'iwmmxt_helper.c',
   'neon_helper.c',
+  'tlb_helper.c',
 ))
diff --git a/target/arm/tcg/tlb_helper.c b/target/arm/tcg/tlb_helper.c
index d9e6c827d4..23c72a99f5 100644
--- a/target/arm/tcg/tlb_helper.c
+++ b/target/arm/tcg/tlb_helper.c
@@ -9,8 +9,9 @@
 #include "cpu.h"
 #include "internals.h"
 #include "cpu-features.h"
-#include "exec/helper-proto.h"
 
+#define HELPER_H "tcg/helper.h"
+#include "exec/helper-proto.h.inc"
 
 /*
  * Returns true if the stage 1 translation regime is using LPAE format page