Skip to content

Commit 0d1322e

Browse files
brooniectmarinas
authored andcommitted
arm64/sme: Automatically generate defines for SMCR
Convert SMCR to use the register definition code, no functional change. Signed-off-by: Mark Brown <[email protected]> Reviewed-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent 9e2c081 commit 0d1322e

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

arch/arm64/include/asm/sysreg.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@
216216
#define SYS_ZCR_EL1 sys_reg(3, 0, 1, 2, 0)
217217
#define SYS_TRFCR_EL1 sys_reg(3, 0, 1, 2, 1)
218218
#define SYS_SMPRI_EL1 sys_reg(3, 0, 1, 2, 4)
219-
#define SYS_SMCR_EL1 sys_reg(3, 0, 1, 2, 6)
220219

221220
#define SYS_TCR_EL1 sys_reg(3, 0, 2, 0, 2)
222221

@@ -571,7 +570,6 @@
571570
#define SYS_TRFCR_EL2 sys_reg(3, 4, 1, 2, 1)
572571
#define SYS_HCRX_EL2 sys_reg(3, 4, 1, 2, 2)
573572
#define SYS_SMPRIMAP_EL2 sys_reg(3, 4, 1, 2, 5)
574-
#define SYS_SMCR_EL2 sys_reg(3, 4, 1, 2, 6)
575573
#define SYS_DACR32_EL2 sys_reg(3, 4, 3, 0, 0)
576574
#define SYS_HDFGRTR_EL2 sys_reg(3, 4, 3, 1, 4)
577575
#define SYS_HDFGWTR_EL2 sys_reg(3, 4, 3, 1, 5)
@@ -631,7 +629,6 @@
631629
#define SYS_SCTLR_EL12 sys_reg(3, 5, 1, 0, 0)
632630
#define SYS_CPACR_EL12 sys_reg(3, 5, 1, 0, 2)
633631
#define SYS_ZCR_EL12 sys_reg(3, 5, 1, 2, 0)
634-
#define SYS_SMCR_EL12 sys_reg(3, 5, 1, 2, 6)
635632
#define SYS_TTBR0_EL12 sys_reg(3, 5, 2, 0, 0)
636633
#define SYS_TTBR1_EL12 sys_reg(3, 5, 2, 0, 1)
637634
#define SYS_TCR_EL12 sys_reg(3, 5, 2, 0, 2)
@@ -1117,13 +1114,6 @@
11171114
#define ZCR_ELx_LEN_WIDTH 4
11181115
#define ZCR_ELx_LEN_MASK 0xf
11191116

1120-
#define SMCR_ELx_FA64_SHIFT 31
1121-
#define SMCR_ELx_FA64_MASK (1 << SMCR_ELx_FA64_SHIFT)
1122-
1123-
#define SMCR_ELx_LEN_SHIFT 0
1124-
#define SMCR_ELx_LEN_WIDTH 4
1125-
#define SMCR_ELx_LEN_MASK 0xf
1126-
11271117
#define CPACR_EL1_FPEN_EL1EN (BIT(20)) /* enable EL1 access */
11281118
#define CPACR_EL1_FPEN_EL0EN (BIT(21)) /* enable EL0 access, if EL1EN set */
11291119

arch/arm64/tools/sysreg

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,26 @@ Field 1 A
185185
Field 0 M
186186
EndSysreg
187187

188+
SysregFields SMCR_ELx
189+
Res0 63:32
190+
Field 31 FA64
191+
Res0 30:9
192+
Raz 8:4
193+
Field 3:0 LEN
194+
EndSysregFields
195+
196+
Sysreg SMCR_EL1 3 0 1 2 6
197+
Fields SMCR_ELx
198+
EndSysreg
199+
200+
Sysreg SMCR_EL2 3 4 1 2 6
201+
Fields SMCR_ELx
202+
EndSysreg
203+
204+
Sysreg SMCR_EL12 3 5 1 2 6
205+
Fields SMCR_ELx
206+
EndSysreg
207+
188208
SysregFields TTBRx_EL1
189209
Field 63:48 ASID
190210
Field 47:1 BADDR

0 commit comments

Comments
 (0)