[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/4] target/arm: Implement FPST_STD_F16 fpstatus
From: |
Alex Bennée |
Subject: |
Re: [PATCH 3/4] target/arm: Implement FPST_STD_F16 fpstatus |
Date: |
Thu, 06 Aug 2020 12:47:40 +0100 |
User-agent: |
mu4e 1.5.5; emacs 28.0.50 |
Peter Maydell <peter.maydell@linaro.org> writes:
> Architecturally, Neon FP16 operations use the "standard FPSCR" like
> all other Neon operations. However, this is defined in the Arm ARM
> pseudocode as "a fixed value, except that FZ16 (and AHP) follow the
> FPSCR bits". In QEMU, the softfloat float_status doesn't include
> separate flush-to-zero for FP16 operations, so we must keep separate
> fp_status for "Neon non-FP16" and "Neon fp16" operations, in the
> same way we do already for the non-Neon "fp_status" vs "fp_status_f16".
>
> Add the extra float_status field to the CPU state structure,
> ensure it is correctly initialized and updated on FPSCR writes,
> and make fpstatus_ptr(FPST_STD_F16) return a pointer to it.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
- [PATCH 0/4] Refactor get_fpstatus_ptr() ready for AArch32 fp16, Peter Maydell, 2020/08/06
- [PATCH 1/4] target/arm: Replace A64 get_fpstatus_ptr() with generic fpstatus_ptr(), Peter Maydell, 2020/08/06
- [PATCH 3/4] target/arm: Implement FPST_STD_F16 fpstatus, Peter Maydell, 2020/08/06
- Re: [PATCH 3/4] target/arm: Implement FPST_STD_F16 fpstatus,
Alex Bennée <=
- [PATCH 2/4] target/arm: Make A32/T32 use new fpstatus_ptr() API, Peter Maydell, 2020/08/06
- [PATCH 4/4] target/arm: Use correct FPST for VCMLA, VCADD on fp16, Peter Maydell, 2020/08/06
- Re: [PATCH 0/4] Refactor get_fpstatus_ptr() ready for AArch32 fp16, Richard Henderson, 2020/08/06