[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 13/21] target/xtensa: Factor out calls to set_use_first_nan()
From: |
Max Filippov |
Subject: |
Re: [PATCH 13/21] target/xtensa: Factor out calls to set_use_first_nan() |
Date: |
Fri, 25 Oct 2024 08:54:03 -0700 |
On Fri, Oct 25, 2024 at 7:13 AM Peter Maydell <peter.maydell@linaro.org> wrote:
>
> In xtensa we currently call set_use_first_nan() in a lot of
> places where we want to switch the NaN-propagation handling.
> We're about to change the softfloat API we use to do that,
> so start by factoring all the calls out into a single
> xtensa_use_first_nan() function.
>
> The bulk of this change was done with
> sed -i -e 's/set_use_first_nan(\([^,]*\),[^)]*)/xtensa_use_first_nan(env,
> \1)/' target/xtensa/fpu_helper.c
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> target/xtensa/cpu.h | 6 ++++++
> target/xtensa/cpu.c | 2 +-
> target/xtensa/fpu_helper.c | 33 +++++++++++++++++++--------------
> 3 files changed, 26 insertions(+), 15 deletions(-)
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
--
Thanks.
-- Max
- Re: [PATCH 11/21] target/sparc: Move cpu_put_fsr(env, 0) call to reset, (continued)
- [PATCH 14/21] target/xtensa: Explicitly set 2-NaN propagation rule, Peter Maydell, 2024/10/25
- [PATCH 16/21] target/alpha: Explicitly set 2-NaN propagation rule, Peter Maydell, 2024/10/25
- [PATCH 13/21] target/xtensa: Factor out calls to set_use_first_nan(), Peter Maydell, 2024/10/25
- [PATCH 12/21] target/sparc: Explicitly set 2-NaN propagation rule, Peter Maydell, 2024/10/25
- [PATCH 15/21] target/i386: Set 2-NaN propagation rule explicitly, Peter Maydell, 2024/10/25
- [PATCH 17/21] target/microblaze: Move setting of float rounding mode to reset, Peter Maydell, 2024/10/25
- [PATCH 19/21] target/openrisc: Explicitly set 2-NaN propagation rule, Peter Maydell, 2024/10/25