diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2025-02-24 11:15:21 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2025-02-25 15:32:57 +0000 |
| commit | 2e01cfea0735889a1e0481fc783d621779439572 (patch) | |
| tree | 906d63ff540a8e0f1b85131a3e05b7d69551b9cd | |
| parent | 1e75d8247ff27a307781230898fbcb8fbb9a8298 (diff) | |
| download | focaccia-qemu-2e01cfea0735889a1e0481fc783d621779439572.tar.gz focaccia-qemu-2e01cfea0735889a1e0481fc783d621779439572.zip | |
fpu: Always decide no_signaling_nans() at runtime
Currently we have a compile-time shortcut where we return false from no_signaling_nans() on everything except Xtensa, because we know that's the only target that might ever set status->no_signaling_nans. Remove the ifdef, so we always look at the status flag; this has no behavioural change, but will be necessary if we want to build softfloat once for all targets. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20250224111524.1101196-10-peter.maydell@linaro.org Message-id: 20250217125055.160887-8-peter.maydell@linaro.org
| -rw-r--r-- | fpu/softfloat-specialize.c.inc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fpu/softfloat-specialize.c.inc b/fpu/softfloat-specialize.c.inc index 8327f72786..a2c6afad5d 100644 --- a/fpu/softfloat-specialize.c.inc +++ b/fpu/softfloat-specialize.c.inc @@ -85,11 +85,7 @@ this code that are retained. */ static inline bool no_signaling_nans(float_status *status) { -#if defined(TARGET_XTENSA) return status->no_signaling_nans; -#else - return false; -#endif } /* Define how the architecture discriminates signaling NaNs. |