arm64: cpufeature: Define helpers for sys_reg id
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 9 Jan 2017 17:28:28 +0000 (17:28 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 10 Jan 2017 17:11:23 +0000 (17:11 +0000)
commitc9ee0f98662a6e358b5f2969755c938ce9c3a63a
tree8cc9feb6da4d6c2b4d667ba1a8fcfd68247b15e9
parent156e0d57f8bc9a4c0f09f4f79af7b51c6d7d0600
arm64: cpufeature: Define helpers for sys_reg id

Define helper macros to extract op0, op1, CRn, CRm & op2
for a given sys_reg id. While at it remove the explicit
masking only used for Op0.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/sysreg.h