Set the 2-NaN propagation rule explicitly in the float_status words
we use. We wrap this plus the pre-existing setting of the
tininess-before-rounding flag in a new function
arm_set_default_fp_behaviours() to avoid repetition, since we have a
lot of float_status words at this point.
The situation with FPA11 emulation in linux-user is a little odd, and
arguably "correct" behaviour there would be to exactly match a real
Linux kernel's FPA11 emulation. However FPA11 emulation is
essentially dead at this point and so it seems better to continue
with QEMU's current behaviour and leave a comment describing the
situation.
Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
---
linux-user/arm/nwfpe/fpa11.c | 18 ++++++++++++++++++
target/arm/cpu.c | 25 +++++++++++++++++--------
fpu/softfloat-specialize.c.inc | 13 ++-----------
3 files changed, 37 insertions(+), 19 deletions(-)