diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2025-02-24 11:15:18 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2025-02-25 15:32:57 +0000 |
| commit | 765fe845ccb953b77b1b7e0557b13a7b760067b0 (patch) | |
| tree | 073372bc44357cf852f1d5d896ed52ad72f5ae83 /include/fpu/softfloat.h | |
| parent | 44eb32a9835fe2feb19503e93476eee602daee0b (diff) | |
| download | focaccia-qemu-765fe845ccb953b77b1b7e0557b13a7b760067b0.tar.gz focaccia-qemu-765fe845ccb953b77b1b7e0557b13a7b760067b0.zip | |
fpu: Pass float_status to floatx80_invalid_encoding()
The definition of which floatx80 encodings are invalid is target-specific. Currently we handle this with an ifdef, but we would like to defer this decision to runtime. In preparation, pass a float_status argument to floatx80_invalid_encoding(). We will change the implementation from ifdef to looking at the status argument in the following 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-7-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 07259c5930..1c8f3cbb78 100644 --- a/include/fpu/softfloat.h +++ b/include/fpu/softfloat.h @@ -1081,7 +1081,7 @@ static inline bool floatx80_unordered_quiet(floatx80 a, floatx80 b, | pseudo-denormals, which must still be correctly handled as inputs even | if they are never generated as outputs. *----------------------------------------------------------------------------*/ -static inline bool floatx80_invalid_encoding(floatx80 a) +static inline bool floatx80_invalid_encoding(floatx80 a, float_status *s) { #if defined(TARGET_M68K) /*------------------------------------------------------------------------- |