[PATCH v2 10/18] arm64: sysreg: Add FPCR and FPSR

Mark Brown broonie at kernel.org
Thu May 28 10:11:12 PDT 2026


On Thu, May 28, 2026 at 05:54:38PM +0100, Mark Rutland wrote:
> Add sysreg definitions for FPCR and FPSR.
> 
> Some versions of LLVM will refuse to assemble accesses to FPCR and FPSR
> unless the "fp" arch extension is enabled, which we don't currently do
> for read_sysreg() and write_sysreg(). In general, handling feature
> dependencies would complicate read_sysreg() and write_sysreg(), and it's
> simpler to use read_sysreg_s() and write_sysreg_s() instead, requiring
> sysreg definitions.

> The values used can be found in ARM ARM issue M.b:

>   https://developer.arm.com/documentation/ddi0487/mb/

> ... in sections:

> * C5.2.8 ("FPCR, Floating-point Control Register")
> * C5.2.10 ("FPSR, Floating-point Status Register")

Reviewed-by: Mark Brown <broonie at kernel.org>

Cross checked against DDI0601 2026-03.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260528/81b089ab/attachment.sig>


More information about the linux-arm-kernel mailing list