[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 24/67] target/arm: Pass fpstatus to vfp_sqrt*
From: |
Peter Maydell |
Subject: |
Re: [PATCH 24/67] target/arm: Pass fpstatus to vfp_sqrt* |
Date: |
Thu, 5 Dec 2024 21:38:54 +0000 |
On Thu, 5 Dec 2024 at 21:21, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> On 1/12/24 16:05, Richard Henderson wrote:
> > Pass fpstatus not env, like most other fp helpers.
> >
> > Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> > ---
> > target/arm/helper.h | 6 +++---
> > target/arm/tcg/translate-a64.c | 15 +++++++--------
> > target/arm/tcg/translate-vfp.c | 6 +++---
> > target/arm/vfp_helper.c | 12 ++++++------
> > 4 files changed, 19 insertions(+), 20 deletions(-)
>
>
> > @@ -10403,6 +10401,7 @@ static void disas_simd_two_reg_misc(DisasContext
> > *s, uint32_t insn)
> > handle_2misc_fcmp_zero(s, opcode, false, u, is_q, size, rn,
> > rd);
> > return;
> > case 0x7f: /* FSQRT */
> > + need_fpstatus = true;
>
> Should this change be in a different patch?
No, this is correct. It tells the common code in this function
that it needs to set up tcg_fpstatus, because in the next change
in a later switch() in this function:
case 0x7f: /* FSQRT */
- gen_helper_vfp_sqrts(tcg_res, tcg_op, tcg_env);
+ gen_helper_vfp_sqrts(tcg_res, tcg_op, tcg_fpstatus);
break;
we will now want to use it.
-- PMM
- Re: [PATCH 22/67] target/arm: Convert FCMP, FCMPE, FCCMP, FCCMPE to decodetree, (continued)
- Re: [PATCH 22/67] target/arm: Convert FCMP, FCMPE, FCCMP, FCCMPE to decodetree, Peter Maydell, 2024/12/05
- Re: [PATCH 22/67] target/arm: Convert FCMP, FCMPE, FCCMP, FCCMPE to decodetree, Richard Henderson, 2024/12/05
[PATCH 23/67] target/arm: Convert FMOV, FABS, FNEG (scalar) to decodetree, Richard Henderson, 2024/12/01
[PATCH 24/67] target/arm: Pass fpstatus to vfp_sqrt*, Richard Henderson, 2024/12/01
[PATCH 28/67] target/arm: Convert BFCVT to decodetree, Richard Henderson, 2024/12/01
[PATCH 25/67] target/arm: Remove helper_sqrt_f16, Richard Henderson, 2024/12/01
[PATCH 26/67] target/arm: Convert FSQRT (scalar) to decodetree, Richard Henderson, 2024/12/01
[PATCH 27/67] target/arm: Convert FRINT[NPMSAXI] (scalar) to decodetree, Richard Henderson, 2024/12/01