arm64/sysreg: Convert ID_AA64ISAR2_EL1 to automatic generation
Automatically generate defines for ID_AA64ISAR2_EL1, using the definitions in DDI0487H.a. No functional changes. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220704170302.2609529-22-broonie@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
parent
f7b5115cc3
commit
8fcc8285c0
|
@ -201,8 +201,6 @@
|
||||||
#define SYS_ID_AA64AFR0_EL1 sys_reg(3, 0, 0, 5, 4)
|
#define SYS_ID_AA64AFR0_EL1 sys_reg(3, 0, 0, 5, 4)
|
||||||
#define SYS_ID_AA64AFR1_EL1 sys_reg(3, 0, 0, 5, 5)
|
#define SYS_ID_AA64AFR1_EL1 sys_reg(3, 0, 0, 5, 5)
|
||||||
|
|
||||||
#define SYS_ID_AA64ISAR2_EL1 sys_reg(3, 0, 0, 6, 2)
|
|
||||||
|
|
||||||
#define SYS_ID_AA64MMFR0_EL1 sys_reg(3, 0, 0, 7, 0)
|
#define SYS_ID_AA64MMFR0_EL1 sys_reg(3, 0, 0, 7, 0)
|
||||||
#define SYS_ID_AA64MMFR1_EL1 sys_reg(3, 0, 0, 7, 1)
|
#define SYS_ID_AA64MMFR1_EL1 sys_reg(3, 0, 0, 7, 1)
|
||||||
#define SYS_ID_AA64MMFR2_EL1 sys_reg(3, 0, 0, 7, 2)
|
#define SYS_ID_AA64MMFR2_EL1 sys_reg(3, 0, 0, 7, 2)
|
||||||
|
@ -699,31 +697,6 @@
|
||||||
/* Position the attr at the correct index */
|
/* Position the attr at the correct index */
|
||||||
#define MAIR_ATTRIDX(attr, idx) ((attr) << ((idx) * 8))
|
#define MAIR_ATTRIDX(attr, idx) ((attr) << ((idx) * 8))
|
||||||
|
|
||||||
/* id_aa64isar2 */
|
|
||||||
#define ID_AA64ISAR2_EL1_BC_SHIFT 28
|
|
||||||
#define ID_AA64ISAR2_EL1_APA3_SHIFT 12
|
|
||||||
#define ID_AA64ISAR2_EL1_GPA3_SHIFT 8
|
|
||||||
#define ID_AA64ISAR2_EL1_RPRES_SHIFT 4
|
|
||||||
#define ID_AA64ISAR2_EL1_WFxT_SHIFT 0
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Value 0x1 has been removed from the architecture, and is
|
|
||||||
* reserved, but has not yet been removed from the ARM ARM
|
|
||||||
* as of ARM DDI 0487G.b.
|
|
||||||
*/
|
|
||||||
#define ID_AA64ISAR2_EL1_WFxT_NI 0x0
|
|
||||||
#define ID_AA64ISAR2_EL1_WFxT_IMP 0x2
|
|
||||||
|
|
||||||
#define ID_AA64ISAR2_EL1_APA3_NI 0x0
|
|
||||||
#define ID_AA64ISAR2_EL1_APA3_PAuth 0x1
|
|
||||||
#define ID_AA64ISAR2_EL1_APA3_EPAC 0x2
|
|
||||||
#define ID_AA64ISAR2_EL1_APA3_PAuth2 0x3
|
|
||||||
#define ID_AA64ISAR2_EL1_APA3_FPAC 0x4
|
|
||||||
#define ID_AA64ISAR2_EL1_APA3_FPACCOMBINE 0x5
|
|
||||||
|
|
||||||
#define ID_AA64ISAR2_EL1_GPA3_NI 0x0
|
|
||||||
#define ID_AA64ISAR2_EL1_GPA3_IMP 0x1
|
|
||||||
|
|
||||||
/* id_aa64pfr0 */
|
/* id_aa64pfr0 */
|
||||||
#define ID_AA64PFR0_CSV3_SHIFT 60
|
#define ID_AA64PFR0_CSV3_SHIFT 60
|
||||||
#define ID_AA64PFR0_CSV2_SHIFT 56
|
#define ID_AA64PFR0_CSV2_SHIFT 56
|
||||||
|
|
|
@ -193,8 +193,41 @@ Enum 3:0 DPB
|
||||||
0b0010 DPB2
|
0b0010 DPB2
|
||||||
EndEnum
|
EndEnum
|
||||||
EndSysreg
|
EndSysreg
|
||||||
|
|
||||||
|
Sysreg ID_AA64ISAR2_EL1 3 0 0 6 2
|
||||||
|
Res0 63:28
|
||||||
|
Enum 27:24 PAC_frac
|
||||||
|
0b0000 NI
|
||||||
0b0001 IMP
|
0b0001 IMP
|
||||||
EndEnum
|
EndEnum
|
||||||
|
Enum 23:20 BC
|
||||||
|
0b0000 NI
|
||||||
|
0b0001 IMP
|
||||||
|
EndEnum
|
||||||
|
Enum 19:16 MOPS
|
||||||
|
0b0000 NI
|
||||||
|
0b0001 IMP
|
||||||
|
EndEnum
|
||||||
|
Enum 15:12 APA3
|
||||||
|
0b0000 NI
|
||||||
|
0b0001 PAuth
|
||||||
|
0b0010 EPAC
|
||||||
|
0b0011 PAuth2
|
||||||
|
0b0100 FPAC
|
||||||
|
0b0101 FPACCOMBINE
|
||||||
|
EndEnum
|
||||||
|
Enum 11:8 GPA3
|
||||||
|
0b0000 NI
|
||||||
|
0b0001 IMP
|
||||||
|
EndEnum
|
||||||
|
Enum 7:4 RPRES
|
||||||
|
0b0000 NI
|
||||||
|
0b0001 IMP
|
||||||
|
EndEnum
|
||||||
|
Enum 3:0 WFxT
|
||||||
|
0b0000 NI
|
||||||
|
0b0010 IMP
|
||||||
|
EndEnum
|
||||||
EndSysreg
|
EndSysreg
|
||||||
|
|
||||||
Sysreg SCTLR_EL1 3 0 1 0 0
|
Sysreg SCTLR_EL1 3 0 1 0 0
|
||||||
|
|
Loading…
Reference in New Issue