Skip to content

Commit f70a810

Browse files
James Morsewilldeacon
authored andcommitted
arm64/sysreg: Convert MVFR2_EL1 to automatic generation
Convert MVFR2_EL1 to be automatically generated as per DDI0487I.a, no functional changes. Reviewed-by: Mark Brown <[email protected]> Signed-off-by: James Morse <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent c9b718e commit f70a810

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

arch/arm64/include/asm/sysreg.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@
170170
#define SYS_ID_AFR0_EL1 sys_reg(3, 0, 0, 1, 3)
171171
#define SYS_ID_MMFR5_EL1 sys_reg(3, 0, 0, 3, 6)
172172

173-
#define SYS_MVFR2_EL1 sys_reg(3, 0, 0, 3, 2)
174-
175173
#define SYS_ACTLR_EL1 sys_reg(3, 0, 1, 0, 1)
176174
#define SYS_RGSR_EL1 sys_reg(3, 0, 1, 0, 5)
177175
#define SYS_GCR_EL1 sys_reg(3, 0, 1, 0, 6)
@@ -708,9 +706,6 @@
708706
#define ID_AA64MMFR0_EL1_TGRAN_2_SHIFT ID_AA64MMFR0_EL1_TGRAN64_2_SHIFT
709707
#endif
710708

711-
#define MVFR2_EL1_FPMisc_SHIFT 4
712-
#define MVFR2_EL1_SIMDMisc_SHIFT 0
713-
714709
#define CPACR_EL1_FPEN_EL1EN (BIT(20)) /* enable EL1 access */
715710
#define CPACR_EL1_FPEN_EL0EN (BIT(21)) /* enable EL0 access, if EL1EN set */
716711

arch/arm64/tools/sysreg

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,23 @@ Enum 3:0 FPFtZ
684684
EndEnum
685685
EndSysreg
686686

687+
Sysreg MVFR2_EL1 3 0 0 3 2
688+
Res0 63:8
689+
Enum 7:4 FPMisc
690+
0b0000 NI
691+
0b0001 FP
692+
0b0010 FP_DIRECTED_ROUNDING
693+
0b0011 FP_ROUNDING
694+
0b0100 FP_MAX_MIN
695+
EndEnum
696+
Enum 3:0 SIMDMisc
697+
0b0000 NI
698+
0b0001 SIMD_DIRECTED_ROUNDING
699+
0b0010 SIMD_ROUNDING
700+
0b0011 SIMD_MAX_MIN
701+
EndEnum
702+
EndSysreg
703+
687704
Sysreg ID_PFR2_EL1 3 0 0 3 4
688705
Res0 63:12
689706
Enum 11:8 RAS_frac

0 commit comments

Comments
 (0)