Skip to content

Commit e79c94a

Browse files
James Morsewilldeacon
authored andcommitted
arm64/sysreg: Convert MVFR0_EL1 to automatic generation
Convert MVFR0_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 039d372 commit e79c94a

File tree

2 files changed

+39
-10
lines changed

2 files changed

+39
-10
lines changed

arch/arm64/include/asm/sysreg.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +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_MVFR0_EL1 sys_reg(3, 0, 0, 3, 0)
174173
#define SYS_MVFR1_EL1 sys_reg(3, 0, 0, 3, 1)
175174
#define SYS_MVFR2_EL1 sys_reg(3, 0, 0, 3, 2)
176175

@@ -693,15 +692,6 @@
693692
#define ID_DFR0_EL1_CopSDbg_SHIFT 4
694693
#define ID_DFR0_EL1_CopDbg_SHIFT 0
695694

696-
#define MVFR0_EL1_FPRound_SHIFT 28
697-
#define MVFR0_EL1_FPShVec_SHIFT 24
698-
#define MVFR0_EL1_FPSqrt_SHIFT 20
699-
#define MVFR0_EL1_FPDivide_SHIFT 16
700-
#define MVFR0_EL1_FPTrap_SHIFT 12
701-
#define MVFR0_EL1_FPDP_SHIFT 8
702-
#define MVFR0_EL1_FPSP_SHIFT 4
703-
#define MVFR0_EL1_SIMDReg_SHIFT 0
704-
705695
#define MVFR1_EL1_SIMDFMAC_SHIFT 28
706696
#define MVFR1_EL1_FPHP_SHIFT 24
707697
#define MVFR1_EL1_SIMDHP_SHIFT 20

arch/arm64/tools/sysreg

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,45 @@ Enum 3:0 SpecSEI
606606
EndEnum
607607
EndSysreg
608608

609+
Sysreg MVFR0_EL1 3 0 0 3 0
610+
Res0 63:32
611+
Enum 31:28 FPRound
612+
0b0000 NI
613+
0b0001 IMP
614+
EndEnum
615+
Enum 27:24 FPShVec
616+
0b0000 NI
617+
0b0001 IMP
618+
EndEnum
619+
Enum 23:20 FPSqrt
620+
0b0000 NI
621+
0b0001 IMP
622+
EndEnum
623+
Enum 19:16 FPDivide
624+
0b0000 NI
625+
0b0001 IMP
626+
EndEnum
627+
Enum 15:12 FPTrap
628+
0b0000 NI
629+
0b0001 IMP
630+
EndEnum
631+
Enum 11:8 FPDP
632+
0b0000 NI
633+
0b0001 VFPv2
634+
0b0001 VFPv3
635+
EndEnum
636+
Enum 7:4 FPSP
637+
0b0000 NI
638+
0b0001 VFPv2
639+
0b0001 VFPv3
640+
EndEnum
641+
Enum 3:0 SIMDReg
642+
0b0000 NI
643+
0b0001 IMP_16x64
644+
0b0001 IMP_32x64
645+
EndEnum
646+
EndSysreg
647+
609648
Sysreg ID_PFR2_EL1 3 0 0 3 4
610649
Res0 63:12
611650
Enum 11:8 RAS_frac

0 commit comments

Comments
 (0)