aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2025-01-28 11:40:13 +0000
committerPeter Maydell <peter.maydell@linaro.org>2025-01-28 18:40:19 +0000
commit75df4e86097062ce3f0926cf2c4afd837edfb286 (patch)
tree0ced3a9322334133786fcf0bcb5ddd74053cd60e
parent57bd2f30ff50642dc32b3b2a4232054f3b6d664e (diff)
downloadqemu-75df4e86097062ce3f0926cf2c4afd837edfb286.zip
qemu-75df4e86097062ce3f0926cf2c4afd837edfb286.tar.gz
qemu-75df4e86097062ce3f0926cf2c4afd837edfb286.tar.bz2
target/arm: Use fp_status_a64 or fp_status_a32 in is_ebf()
In is_ebf(), we might be called for A64 or A32, but we have the CPUARMState* so we can select fp_status_a64 or fp_status_a32 accordingly. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--target/arm/tcg/vec_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/tcg/vec_helper.c b/target/arm/tcg/vec_helper.c
index 011726a..2ba1f7c 100644
--- a/target/arm/tcg/vec_helper.c
+++ b/target/arm/tcg/vec_helper.c
@@ -2808,7 +2808,7 @@ bool is_ebf(CPUARMState *env, float_status *statusp, float_status *oddstatusp)
*/
bool ebf = is_a64(env) && env->vfp.fpcr & FPCR_EBF;
- *statusp = env->vfp.fp_status;
+ *statusp = is_a64(env) ? env->vfp.fp_status_a64 : env->vfp.fp_status_a32;
set_default_nan_mode(true, statusp);
if (ebf) {