aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierrick Bouvier <pierrick.bouvier@linaro.org>2025-05-12 11:04:55 -0700
committerPeter Maydell <peter.maydell@linaro.org>2025-05-14 15:12:40 +0100
commit12ae629d231b01e065b60288e82573842654054c (patch)
tree123ad89d2e08f547a11927e69298412e08d2476d
parent9f8d002499e06f60878f803cb6ad70f1220a3ce4 (diff)
downloadqemu-12ae629d231b01e065b60288e82573842654054c.zip
qemu-12ae629d231b01e065b60288e82573842654054c.tar.gz
qemu-12ae629d231b01e065b60288e82573842654054c.tar.bz2
target/arm/tcg/hflags: 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-42-pierrick.bouvier@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--target/arm/tcg/hflags.c4
-rw-r--r--target/arm/tcg/meson.build8
2 files changed, 10 insertions, 2 deletions
diff --git a/target/arm/tcg/hflags.c b/target/arm/tcg/hflags.c
index fd407a7..1ccec63 100644
--- a/target/arm/tcg/hflags.c
+++ b/target/arm/tcg/hflags.c
@@ -9,11 +9,13 @@
#include "cpu.h"
#include "internals.h"
#include "cpu-features.h"
-#include "exec/helper-proto.h"
#include "exec/translation-block.h"
#include "accel/tcg/cpu-ops.h"
#include "cpregs.h"
+#define HELPER_H "tcg/helper.h"
+#include "exec/helper-proto.h.inc"
+
static inline bool fgt_svc(CPUARMState *env, int el)
{
/*
diff --git a/target/arm/tcg/meson.build b/target/arm/tcg/meson.build
index 2f73eef..cee00b2 100644
--- a/target/arm/tcg/meson.build
+++ b/target/arm/tcg/meson.build
@@ -30,7 +30,6 @@ arm_ss.add(files(
'translate-mve.c',
'translate-neon.c',
'translate-vfp.c',
- 'hflags.c',
'iwmmxt_helper.c',
'm_helper.c',
'mve_helper.c',
@@ -66,3 +65,10 @@ arm_user_ss.add(when: 'TARGET_AARCH64', if_false: files('cpu-v7m.c'))
arm_common_ss.add(files(
'crypto_helper.c',
))
+
+arm_common_system_ss.add(files(
+ 'hflags.c',
+))
+arm_user_ss.add(files(
+ 'hflags.c',
+))