[PATCH] arm64: sysreg: Clean up instructions for modifying PSTATE fields
catalin.marinas at arm.com
Mon Sep 17 07:17:46 PDT 2018
On Sun, Sep 16, 2018 at 11:17:23PM +0100, Suzuki K. Poulose wrote:
> Instructions for modifying the PSTATE fields which were not supported
> in the older toolchains (e.g, PAN, UAO) are generated using macros.
> We have so far used the normal sys_reg() helper for defining the PSTATE
> fields. While this works fine, it is really difficult to correlate the
> code with the Arm ARM definition.
> As per Arm ARM, the PSTATE fields are defined only using Op1, Op2 fields,
> with fixed values for Op0, CRn. Also the CRm field has been reserved
> for the Immediate value for the instruction. So using the sys_reg()
> looks quite confusing.
> This patch cleans up the instruction helpers by bringing them
> in line with the Arm ARM definitions to make it easier to correlate
> code with the document. No functional changes.
> Cc: Will Deacon <will.deacon at arm.com>
> Cc: Mark Rutland <mark.rutland at arm.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose at arm.com>
> Changes since v1
> - Rebased to arm64 for-next/core.
> - Cleanup SSBS defintions and replace CRm_shift => PSTATE_Imm_shift
Applied for 4.20. Thanks.
More information about the linux-arm-kernel