diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2025-02-24 11:15:16 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2025-02-25 15:32:57 +0000 |
| commit | 9ea6d1f141426a7da91f1c7ba3d693472f0550a4 (patch) | |
| tree | be5d717c91a231b8bff7f098c1a6a5569723fdba /include/fpu/softfloat.h | |
| parent | 165ce008d734bc0024dabdbfd1c41738bc5b834f (diff) | |
| download | focaccia-qemu-9ea6d1f141426a7da91f1c7ba3d693472f0550a4.tar.gz focaccia-qemu-9ea6d1f141426a7da91f1c7ba3d693472f0550a4.zip | |
fpu: Pass float_status to floatx80_is_infinity()
Unlike the other float formats, whether a floatx80 value is considered to be an Infinity is target-dependent. (On x86 if the explicit integer bit is clear this is a "pseudo-infinity" and not a valid infinity; m68k does not care about the value of the integer bit.) Currently we select this target-specific logic at compile time with an ifdef. We're going to want to do this at runtime, so change the floatx80_is_infinity() function to take a float_status. This commit doesn't change any logic; we'll do that in the next commit. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20250224111524.1101196-5-peter.maydell@linaro.org
Diffstat (limited to 'include/fpu/softfloat.h')
| -rw-r--r-- | include/fpu/softfloat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/fpu/softfloat.h b/include/fpu/softfloat.h index afae390602..3c83d703ba 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -996,7 +996,7 @@ static inline floatx80 floatx80_chs(floatx80 a) return a; } -static inline bool floatx80_is_infinity(floatx80 a) +static inline bool floatx80_is_infinity(floatx80 a, float_status *status) { #if defined(TARGET_M68K) return (a.high & 0x7fff) == floatx80_infinity.high && !(a.low << 1); |