[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-10.0 23/25] target/i386: Set Float3NaNPropRule explicitly
From: |
Peter Maydell |
Subject: |
[PATCH for-10.0 23/25] target/i386: Set Float3NaNPropRule explicitly |
Date: |
Thu, 28 Nov 2024 10:43:08 +0000 |
Set the Float3NaNPropRule explicitly for i386. We had no
i386-specific behaviour in the old ifdef ladder, so we were using the
default "prefer a then b then c" fallback. This is very likely wrong
for i386, but in this refactoring we don't want to make a behaviour
change, so we leave a TODO note.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
target/i386/tcg/fpu_helper.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/i386/tcg/fpu_helper.c b/target/i386/tcg/fpu_helper.c
index e9de084a96d..b62719dead1 100644
--- a/target/i386/tcg/fpu_helper.c
+++ b/target/i386/tcg/fpu_helper.c
@@ -180,6 +180,8 @@ void cpu_init_fp_statuses(CPUX86State *env)
* against the manual.
*/
set_float_infzeronan_rule(float_infzeronan_dnan_never, &env->sse_status);
+ /* Similarly the NaN propagation rule is likely wrong. */
+ set_float_3nan_prop_rule(float_3nan_prop_abc, &env->sse_status);
}
static inline uint8_t save_exception_flags(CPUX86State *env)
--
2.34.1
- [PATCH for-10.0 20/25] target/sparc: Set Float3NaNPropRule explicitly, (continued)
- [PATCH for-10.0 20/25] target/sparc: Set Float3NaNPropRule explicitly, Peter Maydell, 2024/11/28
- [PATCH for-10.0 09/25] target/sparc: Set FloatInfZeroNaNRule explicitly, Peter Maydell, 2024/11/28
- [PATCH for-10.0 11/25] target/x86: Set FloatInfZeroNaNRule explicitly, Peter Maydell, 2024/11/28
- [PATCH for-10.0 08/25] target/mips: Set FloatInfZeroNaNRule explicitly, Peter Maydell, 2024/11/28
- [PATCH for-10.0 13/25] target/hppa: Set FloatInfZeroNaNRule explicitly, Peter Maydell, 2024/11/28
- [PATCH for-10.0 15/25] tests/fp: Explicitly set 3-NaN propagation rule, Peter Maydell, 2024/11/28
- [PATCH for-10.0 19/25] target/s390x: Set Float3NaNPropRule explicitly, Peter Maydell, 2024/11/28
- [PATCH for-10.0 18/25] target/ppc: Set Float3NaNPropRule explicitly, Peter Maydell, 2024/11/28
- [PATCH for-10.0 16/25] target/arm: Set Float3NaNPropRule explicitly, Peter Maydell, 2024/11/28
- [PATCH for-10.0 25/25] fpu: Remove use_first_nan field from float_status, Peter Maydell, 2024/11/28
- [PATCH for-10.0 23/25] target/i386: Set Float3NaNPropRule explicitly,
Peter Maydell <=
- [PATCH for-10.0 12/25] target/loongarch: Set FloatInfZeroNaNRule explicitly, Peter Maydell, 2024/11/28
- [PATCH for-10.0 24/25] target/hppa: Set Float3NaNPropRule explicitly, Peter Maydell, 2024/11/28
- [PATCH for-10.0 17/25] target/loongarch: Set Float3NaNPropRule explicitly, Peter Maydell, 2024/11/28
- [PATCH for-10.0 22/25] target/xtensa: Set Float3NaNPropRule explicitly, Peter Maydell, 2024/11/28
- [PATCH for-10.0 21/25] target/mips: Set Float3NaNPropRule explicitly, Peter Maydell, 2024/11/28