mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-27 03:51:57 -06:00
fpu: Remove use_first_nan field from float_status
The use_first_nan field in float_status was an xtensa-specific way to select at runtime from two different NaN propagation rules. Now that xtensa is using the target-agnostic NaN propagation rule selection that we've just added, we can remove use_first_nan, because there is no longer any code that reads it. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20241202131347.498124-27-peter.maydell@linaro.org
This commit is contained in:
parent
f8023791f2
commit
dc416d6ca7
3 changed files with 0 additions and 7 deletions
|
@ -113,11 +113,6 @@ static inline void set_snan_bit_is_one(bool val, float_status *status)
|
||||||
status->snan_bit_is_one = val;
|
status->snan_bit_is_one = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void set_use_first_nan(bool val, float_status *status)
|
|
||||||
{
|
|
||||||
status->use_first_nan = val;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void set_no_signaling_nans(bool val, float_status *status)
|
static inline void set_no_signaling_nans(bool val, float_status *status)
|
||||||
{
|
{
|
||||||
status->no_signaling_nans = val;
|
status->no_signaling_nans = val;
|
||||||
|
|
|
@ -309,7 +309,6 @@ typedef struct float_status {
|
||||||
* softfloat-specialize.inc.c)
|
* softfloat-specialize.inc.c)
|
||||||
*/
|
*/
|
||||||
bool snan_bit_is_one;
|
bool snan_bit_is_one;
|
||||||
bool use_first_nan;
|
|
||||||
bool no_signaling_nans;
|
bool no_signaling_nans;
|
||||||
/* should overflowed results subtract re_bias to its exponent? */
|
/* should overflowed results subtract re_bias to its exponent? */
|
||||||
bool rebias_overflow;
|
bool rebias_overflow;
|
||||||
|
|
|
@ -59,7 +59,6 @@ static const struct {
|
||||||
|
|
||||||
void xtensa_use_first_nan(CPUXtensaState *env, bool use_first)
|
void xtensa_use_first_nan(CPUXtensaState *env, bool use_first)
|
||||||
{
|
{
|
||||||
set_use_first_nan(use_first, &env->fp_status);
|
|
||||||
set_float_2nan_prop_rule(use_first ? float_2nan_prop_ab : float_2nan_prop_ba,
|
set_float_2nan_prop_rule(use_first ? float_2nan_prop_ab : float_2nan_prop_ba,
|
||||||
&env->fp_status);
|
&env->fp_status);
|
||||||
set_float_3nan_prop_rule(use_first ? float_3nan_prop_abc : float_3nan_prop_cba,
|
set_float_3nan_prop_rule(use_first ? float_3nan_prop_abc : float_3nan_prop_cba,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue