@samitouri / QOSamiQemu / commits / 27031a759d

target/arm: extract helper-sme.h from helper.h

Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-id: 20260219040150.2098396-7-pierrick.bouvier@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Pierrick Bouvier committed Feb 18, 2026 at 20:01 UTC 27031a759d1d29d55eb09006a79838f0b4390b27
8 files changed +21 -4
target/arm/helper-sme.h new
+14
@@ -0,0 +1,14 @@
1 +/* SPDX-License-Identifier: GPL-2.0-or-later */
2 +
3 +#ifndef HELPER_SME_H
4 +#define HELPER_SME_H
5 +
6 +#include "exec/helper-proto-common.h"
7 +#include "exec/helper-gen-common.h"
8 +
9 +#define HELPER_H "tcg/helper-sme-defs.h"
10 +#include "exec/helper-proto.h.inc"
11 +#include "exec/helper-gen.h.inc"
12 +#undef HELPER_H
13 +
14 +#endif /* HELPER_SME_H */
target/arm/helper.h
-4
@@ -1,7 +1,3 @@
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 #include "tcg/helper.h"
4 -
5 -#ifdef TARGET_AARCH64
6 -#include "tcg/helper-sme.h"
7 -#endif
target/arm/tcg/helper-sme-defs.h renamed
target/arm/tcg/sme_helper.c
+3
@@ -22,6 +22,7 @@
22 #include "internals.h"
23 #include "tcg/tcg-gvec-desc.h"
24 #include "exec/helper-proto.h"
25 +#include "helper-sme.h"
26 #include "accel/tcg/cpu-ldst.h"
27 #include "accel/tcg/helper-retaddr.h"
28 #include "qemu/int128.h"
@@ -29,6 +30,8 @@
30 #include "vec_internal.h"
31 #include "sve_ldst_internal.h"
32
33 +#define HELPER_H "tcg/helper-sme-defs.h"
34 +#include "exec/helper-info.c.inc"
35
36 static bool vectors_overlap(ARMVectorReg *x, unsigned nx,
37 ARMVectorReg *y, unsigned ny)
target/arm/tcg/translate-a64.c
+1
@@ -19,6 +19,7 @@
19 #include "qemu/osdep.h"
20 #include "exec/target_page.h"
21 #include "helper-a64.h"
22 +#include "helper-sme.h"
23 #include "helper-sve.h"
24 #include "translate.h"
25 #include "translate-a64.h"
target/arm/tcg/translate-sme.c
+1
@@ -19,6 +19,7 @@
19
20 #include "qemu/osdep.h"
21 #include "cpu.h"
22 +#include "helper-sme.h"
23 #include "helper-sve.h"
24 #include "translate.h"
25 #include "translate-a64.h"
target/arm/tcg/translate-sve.c
+1
@@ -19,6 +19,7 @@
19
20 #include "qemu/osdep.h"
21 #include "cpu.h"
22 +#include "helper-sme.h"
23 #include "helper-sve.h"
24 #include "translate.h"
25 #include "translate-a64.h"
target/arm/tcg/vec_helper.c
+1
@@ -21,6 +21,7 @@
21 #include "cpu.h"
22 #include "exec/helper-proto.h"
23 #include "helper-a64.h"
24 +#include "helper-sme.h"
25 #include "helper-sve.h"
26 #include "tcg/tcg-gvec-desc.h"
27 #include "fpu/softfloat.h"