diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2025-01-24 16:27:29 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2025-01-28 18:40:19 +0000 |
| commit | d1ce6db3b1dcaa51d48def07f5615e6655ec4550 (patch) | |
| tree | d4232ee81e0af9353548ed85732a4dd30643b306 | |
| parent | 1069d8ab30cb8c06cb093b06b05f571f64248d0d (diff) | |
| download | focaccia-qemu-d1ce6db3b1dcaa51d48def07f5615e6655ec4550.tar.gz focaccia-qemu-d1ce6db3b1dcaa51d48def07f5615e6655ec4550.zip | |
target/arm: Use fp_status_a32 in vfp_cmp helpers
The helpers vfp_cmps, vfp_cmpes, vfp_cmpd, vfp_cmped are used only from the A32 decoder; the A64 decoder uses separate vfp_cmps_a64 etc helpers (because for A64 we update the main NZCV flags and for A32 we update the FPSCR NZCV flags). So we can make these helpers use the fp_status_a32 field instead of fp_status. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20250124162836.2332150-10-peter.maydell@linaro.org
| -rw-r--r-- | target/arm/vfp_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/arm/vfp_helper.c b/target/arm/vfp_helper.c index 0671ba3a88..034f26e5da 100644 --- a/target/arm/vfp_helper.c +++ b/target/arm/vfp_helper.c @@ -373,8 +373,8 @@ void VFP_HELPER(cmpe, P)(ARGTYPE a, ARGTYPE b, CPUARMState *env) \ FLOATTYPE ## _compare(a, b, &env->vfp.FPST)); \ } DO_VFP_cmp(h, float16, dh_ctype_f16, fp_status_f16) -DO_VFP_cmp(s, float32, float32, fp_status) -DO_VFP_cmp(d, float64, float64, fp_status) +DO_VFP_cmp(s, float32, float32, fp_status_a32) +DO_VFP_cmp(d, float64, float64, fp_status_a32) #undef DO_VFP_cmp /* Integer to float and float to integer conversions */ |