]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Adjust exception flag handling for AH = 1
authorPeter Maydell <peter.maydell@linaro.org>
Sat, 1 Feb 2025 16:39:12 +0000 (16:39 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 11 Feb 2025 16:22:07 +0000 (16:22 +0000)
commita4550b7be90ccbda06b58b2c965bc87d697ec130
treeb67764de38c1b7e235b4f746d359375550a9a532
parentb3d00d0a448b6ea5750da1a163aeead0287f6c05
target/arm: Adjust exception flag handling for AH = 1

When FPCR.AH = 1, some of the cumulative exception flags in the FPSR
behave slightly differently for A64 operations:
 * IDC is set when a denormal input is used without flushing
 * IXC (Inexact) is set when an output denormal is flushed to zero

Update vfp_get_fpsr_from_host() to do this.

Note that because half-precision operations never set IDC, we now
need to add float_flag_input_denormal_used to the set we mask out of
fp_status_f16_a64.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/arm/vfp_helper.c