diff options
author | Richard Henderson | 2018-05-10 23:48:17 +0200 |
---|---|---|
committer | Richard Henderson | 2018-05-18 00:27:15 +0200 |
commit | 03385dfdaaa2dc31bbd07d13244a6b037bfab4cc (patch) | |
tree | 77e87ee1eec1c3e5e6b2824ad2f6ce485a574a6f /include/fpu/softfloat-types.h | |
parent | fpu/softfloat: Remove floatX_maybe_silence_nan (diff) | |
download | qemu-03385dfdaaa2dc31bbd07d13244a6b037bfab4cc.tar.gz qemu-03385dfdaaa2dc31bbd07d13244a6b037bfab4cc.tar.xz qemu-03385dfdaaa2dc31bbd07d13244a6b037bfab4cc.zip |
fpu/softfloat: Specialize on snan_bit_is_one
Only MIPS requires snan_bit_is_one to be variable. While we are
specializing softfloat behaviour, allow other targets to eliminate
this runtime check.
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Yongbok Kim <yongbok.kim@mips.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: Alexander Graf <agraf@suse.de>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/fpu/softfloat-types.h')
-rw-r--r-- | include/fpu/softfloat-types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fpu/softfloat-types.h b/include/fpu/softfloat-types.h index 4e378cb612..2aae6a89b1 100644 --- a/include/fpu/softfloat-types.h +++ b/include/fpu/softfloat-types.h @@ -173,6 +173,7 @@ typedef struct float_status { /* should denormalised inputs go to zero and set the input_denormal flag? */ flag flush_inputs_to_zero; flag default_nan_mode; + /* not always used -- see snan_bit_is_one() in softfloat-specialize.h */ flag snan_bit_is_one; } float_status; |