summaryrefslogtreecommitdiffstats
path: root/include/fpu/softfloat-types.h
diff options
context:
space:
mode:
authorMax Filippov2020-07-01 04:35:49 +0200
committerMax Filippov2020-08-21 21:48:14 +0200
commitcc43c6925113c5bc8f1a0205375931d2e4807c99 (patch)
tree756ac99bf25877985fb5e310aa2ef587fb9aaba8 /include/fpu/softfloat-types.h
parenttarget/xtensa: implement NMI support (diff)
downloadqemu-cc43c6925113c5bc8f1a0205375931d2e4807c99.tar.gz
qemu-cc43c6925113c5bc8f1a0205375931d2e4807c99.tar.xz
qemu-cc43c6925113c5bc8f1a0205375931d2e4807c99.zip
softfloat: make NO_SIGNALING_NANS runtime property
target/xtensa, the only user of NO_SIGNALING_NANS macro has FPU implementations with and without the corresponding property. With NO_SIGNALING_NANS being a macro they cannot be a part of the same QEMU executable. Replace macro with new property in float_status to allow cores with different FPU implementations coexist. Cc: Peter Maydell <peter.maydell@linaro.org> Cc: "Alex Bennée" <alex.bennee@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'include/fpu/softfloat-types.h')
-rw-r--r--include/fpu/softfloat-types.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/fpu/softfloat-types.h b/include/fpu/softfloat-types.h
index 7680193ebc..d6f167c1b0 100644
--- a/include/fpu/softfloat-types.h
+++ b/include/fpu/softfloat-types.h
@@ -165,8 +165,13 @@ typedef struct float_status {
/* should denormalised inputs go to zero and set the input_denormal flag? */
bool flush_inputs_to_zero;
bool default_nan_mode;
- /* not always used -- see snan_bit_is_one() in softfloat-specialize.h */
+ /*
+ * The flags below are not used on all specializations and may
+ * constant fold away (see snan_bit_is_one()/no_signalling_nans() in
+ * softfloat-specialize.inc.c)
+ */
bool snan_bit_is_one;
+ bool no_signaling_nans;
} float_status;
#endif /* SOFTFLOAT_TYPES_H */