aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-05-27 11:18:21 -0700
committerPeter Maydell <peter.maydell@linaro.org>2022-05-30 17:05:08 +0100
commit9c545be60d0f04e65769117ac744bd372dc35ed4 (patch)
treeac2f43c56772f4427b04ab1a527502773466653b
parentef75309be9b4619b29963df2a2b0b068c43bd5b2 (diff)
downloadqemu-9c545be60d0f04e65769117ac744bd372dc35ed4.zip
qemu-9c545be60d0f04e65769117ac744bd372dc35ed4.tar.gz
qemu-9c545be60d0f04e65769117ac744bd372dc35ed4.tar.bz2
target/arm: Use TRANS_FEAT for do_ppzi_flags
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220527181907.189259-69-richard.henderson@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--target/arm/translate-sve.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index 22acd5e..03b2edd 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -2786,14 +2786,12 @@ static bool do_ppzi_flags(DisasContext *s, arg_rpri_esz *a,
}
#define DO_PPZI(NAME, name) \
-static bool trans_##NAME##_ppzi(DisasContext *s, arg_rpri_esz *a) \
-{ \
- static gen_helper_gvec_flags_3 * const fns[4] = { \
+ static gen_helper_gvec_flags_3 * const name##_ppzi_fns[4] = { \
gen_helper_sve_##name##_ppzi_b, gen_helper_sve_##name##_ppzi_h, \
gen_helper_sve_##name##_ppzi_s, gen_helper_sve_##name##_ppzi_d, \
}; \
- return do_ppzi_flags(s, a, fns[a->esz]); \
-}
+ TRANS_FEAT(NAME##_ppzi, aa64_sve, do_ppzi_flags, a, \
+ name##_ppzi_fns[a->esz])
DO_PPZI(CMPEQ, cmpeq)
DO_PPZI(CMPNE, cmpne)