HomeFreeBSD

arm64: make SPE regs use ALT_NAME macro

Description

arm64: make SPE regs use ALT_NAME macro

When the register is not defined in Armv8.0 i.e. added in a later
extension, like SPE added in v8.2, the alternative name format of:

S<op0>_<op1>_C<crn>_C<crm>_<op2>

should be used; otherwise, calls to {READ,WRITE}_SPECIALREG() will
fail.

Use the MRS_REG_ALT_NAME() macro for SPE changing hex to decimal as
required by the macro.

Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D45171

(cherry picked from commit f7bdaa103eb8906fc999c7fd5e8d6af440e26e6c)

Details

Provenance
zachary.leaf_arm.comAuthored on May 10 2024, 3:59 PM
andrewCommitted on Jul 15 2024, 12:34 PM
Reviewer
andrew
Differential Revision
D45171: arm64: make SPE regs use ALT_NAME macro
Parents
rG788cf499da8a: arm64: Add MRS_REG_ALT_NAME ID register macros
Branches
Unknown
Tags
Unknown