@samitouri / QOSamiQemu / commits / af4ff26d4d

target/arm: extract helper-sve.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-6-pierrick.bouvier@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Pierrick Bouvier committed Feb 18, 2026 at 20:01 UTC af4ff26d4dbd35dc23f60d0a5c97cf044cc3ce34
9 files changed +25 -2
target/arm/helper-sve.h new
+14
@@ -0,0 +1,14 @@
1 +/* SPDX-License-Identifier: GPL-2.0-or-later */
2 +
3 +#ifndef HELPER_SVE_H
4 +#define HELPER_SVE_H
5 +
6 +#include "exec/helper-proto-common.h"
7 +#include "exec/helper-gen-common.h"
8 +
9 +#define HELPER_H "tcg/helper-sve-defs.h"
10 +#include "exec/helper-proto.h.inc"
11 +#include "exec/helper-gen.h.inc"
12 +#undef HELPER_H
13 +
14 +#endif /* HELPER_SVE_H */
target/arm/helper.h
-1
@@ -3,6 +3,5 @@
3 #include "tcg/helper.h"
4
5 #ifdef TARGET_AARCH64
6 -#include "tcg/helper-sve.h"
6 #include "tcg/helper-sme.h"
7 #endif
target/arm/tcg/gengvec64.c
+2 -1
@@ -18,10 +18,11 @@
18 */
19
20 #include "qemu/osdep.h"
21 +#include "cpu.h"
22 +#include "helper-sve.h"
23 #include "translate.h"
24 #include "translate-a64.h"
25
24 -
26 static void gen_rax1_i64(TCGv_i64 d, TCGv_i64 n, TCGv_i64 m)
27 {
28 tcg_gen_rotli_i64(d, m, 1);
target/arm/tcg/helper-sve-defs.h renamed
target/arm/tcg/sve_helper.c
+3
@@ -25,6 +25,7 @@
25 #include "exec/target_page.h"
26 #include "exec/tlb-flags.h"
27 #include "helper-a64.h"
28 +#include "helper-sve.h"
29 #include "tcg/tcg-gvec-desc.h"
30 #include "fpu/softfloat.h"
31 #include "tcg/tcg.h"
@@ -38,6 +39,8 @@
39 #include "user/page-protection.h"
40 #endif
41
42 +#define HELPER_H "tcg/helper-sve-defs.h"
43 +#include "exec/helper-info.c.inc"
44
45 /* Return a value for NZCV as per the ARM PredTest pseudofunction.
46 *
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-sve.h"
23 #include "translate.h"
24 #include "translate-a64.h"
25 #include "qemu/log.h"
target/arm/tcg/translate-sme.c
+2
@@ -18,6 +18,8 @@
18 */
19
20 #include "qemu/osdep.h"
21 +#include "cpu.h"
22 +#include "helper-sve.h"
23 #include "translate.h"
24 #include "translate-a64.h"
25
target/arm/tcg/translate-sve.c
+2
@@ -18,6 +18,8 @@
18 */
19
20 #include "qemu/osdep.h"
21 +#include "cpu.h"
22 +#include "helper-sve.h"
23 #include "translate.h"
24 #include "translate-a64.h"
25 #include "fpu/softfloat.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-sve.h"
25 #include "tcg/tcg-gvec-desc.h"
26 #include "fpu/softfloat.h"
27 #include "qemu/int128.h"