From: Richard Henderson Date: Fri, 27 May 2022 18:18:14 +0000 (-0700) Subject: target/arm: Use TRANS_FEAT for do_clast_fp X-Git-Tag: v7.1.0-rc0~83^2~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac4fb247fb288d6a2bdeb6a4b6cbf68cf3f7b150;p=thirdparty%2Fqemu.git target/arm: Use TRANS_FEAT for do_clast_fp Signed-off-by: Richard Henderson Message-id: 20220527181907.189259-62-richard.henderson@linaro.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 51358667984..21c2bd099d4 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -2542,15 +2542,8 @@ static bool do_clast_fp(DisasContext *s, arg_rpr_esz *a, bool before) return true; } -static bool trans_CLASTA_v(DisasContext *s, arg_rpr_esz *a) -{ - return do_clast_fp(s, a, false); -} - -static bool trans_CLASTB_v(DisasContext *s, arg_rpr_esz *a) -{ - return do_clast_fp(s, a, true); -} +TRANS_FEAT(CLASTA_v, aa64_sve, do_clast_fp, a, false) +TRANS_FEAT(CLASTB_v, aa64_sve, do_clast_fp, a, true) /* Compute CLAST for a Xreg. */ static bool do_clast_general(DisasContext *s, arg_rpr_esz *a, bool before)