mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
target/sparc: Explicitly set 2-NaN propagation rule
Set the NaN propagation rule explicitly in the float_status words we use. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20241025141254.2141506-13-peter.maydell@linaro.org
This commit is contained in:
parent
65c1c039cd
commit
4482f32dcd
3 changed files with 18 additions and 6 deletions
|
@ -404,11 +404,9 @@ static int pickNaN(FloatClass a_cls, FloatClass b_cls,
|
|||
|| defined(TARGET_RISCV) || defined(TARGET_SH4) \
|
||||
|| defined(TARGET_TRICORE) || defined(TARGET_ARM) || defined(TARGET_MIPS) \
|
||||
|| defined(TARGET_LOONGARCH64) || defined(TARGET_HPPA) \
|
||||
|| defined(TARGET_S390X) || defined(TARGET_PPC) || defined(TARGET_M68K)
|
||||
|| defined(TARGET_S390X) || defined(TARGET_PPC) || defined(TARGET_M68K) \
|
||||
|| defined(TARGET_SPARC)
|
||||
g_assert_not_reached();
|
||||
#elif defined(TARGET_SPARC)
|
||||
/* Prefer SNaN over QNaN, order B then A. */
|
||||
rule = float_2nan_prop_s_ba;
|
||||
#elif defined(TARGET_XTENSA)
|
||||
/*
|
||||
* Xtensa has two NaN propagation modes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue