|
192 | 192 |
|
193 | 193 | #define SYS_ID_AA64PFR0_EL1 sys_reg(3, 0, 0, 4, 0)
|
194 | 194 | #define SYS_ID_AA64PFR1_EL1 sys_reg(3, 0, 0, 4, 1)
|
195 |
| -#define SYS_ID_AA64ZFR0_EL1 sys_reg(3, 0, 0, 4, 4) |
196 |
| -#define SYS_ID_AA64SMFR0_EL1 sys_reg(3, 0, 0, 4, 5) |
197 | 195 |
|
198 | 196 | #define SYS_ID_AA64DFR0_EL1 sys_reg(3, 0, 0, 5, 0)
|
199 | 197 | #define SYS_ID_AA64DFR1_EL1 sys_reg(3, 0, 0, 5, 1)
|
200 | 198 |
|
201 | 199 | #define SYS_ID_AA64AFR0_EL1 sys_reg(3, 0, 0, 5, 4)
|
202 | 200 | #define SYS_ID_AA64AFR1_EL1 sys_reg(3, 0, 0, 5, 5)
|
203 | 201 |
|
204 |
| -#define SYS_ID_AA64ISAR1_EL1 sys_reg(3, 0, 0, 6, 1) |
205 |
| -#define SYS_ID_AA64ISAR2_EL1 sys_reg(3, 0, 0, 6, 2) |
206 |
| - |
207 | 202 | #define SYS_ID_AA64MMFR0_EL1 sys_reg(3, 0, 0, 7, 0)
|
208 | 203 | #define SYS_ID_AA64MMFR1_EL1 sys_reg(3, 0, 0, 7, 1)
|
209 | 204 | #define SYS_ID_AA64MMFR2_EL1 sys_reg(3, 0, 0, 7, 2)
|
|
410 | 405 | #define SYS_MAIR_EL1 sys_reg(3, 0, 10, 2, 0)
|
411 | 406 | #define SYS_AMAIR_EL1 sys_reg(3, 0, 10, 3, 0)
|
412 | 407 |
|
413 |
| -#define SYS_LORSA_EL1 sys_reg(3, 0, 10, 4, 0) |
414 |
| -#define SYS_LOREA_EL1 sys_reg(3, 0, 10, 4, 1) |
415 |
| -#define SYS_LORN_EL1 sys_reg(3, 0, 10, 4, 2) |
416 |
| -#define SYS_LORC_EL1 sys_reg(3, 0, 10, 4, 3) |
417 |
| -#define SYS_LORID_EL1 sys_reg(3, 0, 10, 4, 7) |
418 |
| - |
419 | 408 | #define SYS_VBAR_EL1 sys_reg(3, 0, 12, 0, 0)
|
420 | 409 | #define SYS_DISR_EL1 sys_reg(3, 0, 12, 1, 1)
|
421 | 410 |
|
|
454 | 443 | #define SYS_CNTKCTL_EL1 sys_reg(3, 0, 14, 1, 0)
|
455 | 444 |
|
456 | 445 | #define SYS_CCSIDR_EL1 sys_reg(3, 1, 0, 0, 0)
|
457 |
| -#define SYS_GMID_EL1 sys_reg(3, 1, 0, 0, 4) |
458 | 446 | #define SYS_AIDR_EL1 sys_reg(3, 1, 0, 0, 7)
|
459 | 447 |
|
460 | 448 | #define SMIDR_EL1_IMPLEMENTER_SHIFT 24
|
461 | 449 | #define SMIDR_EL1_SMPS_SHIFT 15
|
462 | 450 | #define SMIDR_EL1_AFFINITY_SHIFT 0
|
463 | 451 |
|
464 |
| -#define SYS_CTR_EL0 sys_reg(3, 3, 0, 0, 1) |
465 |
| -#define SYS_DCZID_EL0 sys_reg(3, 3, 0, 0, 7) |
466 |
| - |
467 | 452 | #define SYS_RNDR_EL0 sys_reg(3, 3, 2, 4, 0)
|
468 | 453 | #define SYS_RNDRRS_EL0 sys_reg(3, 3, 2, 4, 1)
|
469 | 454 |
|
|
704 | 689 | /* Position the attr at the correct index */
|
705 | 690 | #define MAIR_ATTRIDX(attr, idx) ((attr) << ((idx) * 8))
|
706 | 691 |
|
707 |
| -/* id_aa64isar1 */ |
708 |
| -#define ID_AA64ISAR1_I8MM_SHIFT 52 |
709 |
| -#define ID_AA64ISAR1_DGH_SHIFT 48 |
710 |
| -#define ID_AA64ISAR1_BF16_SHIFT 44 |
711 |
| -#define ID_AA64ISAR1_SPECRES_SHIFT 40 |
712 |
| -#define ID_AA64ISAR1_SB_SHIFT 36 |
713 |
| -#define ID_AA64ISAR1_FRINTTS_SHIFT 32 |
714 |
| -#define ID_AA64ISAR1_GPI_SHIFT 28 |
715 |
| -#define ID_AA64ISAR1_GPA_SHIFT 24 |
716 |
| -#define ID_AA64ISAR1_LRCPC_SHIFT 20 |
717 |
| -#define ID_AA64ISAR1_FCMA_SHIFT 16 |
718 |
| -#define ID_AA64ISAR1_JSCVT_SHIFT 12 |
719 |
| -#define ID_AA64ISAR1_API_SHIFT 8 |
720 |
| -#define ID_AA64ISAR1_APA_SHIFT 4 |
721 |
| -#define ID_AA64ISAR1_DPB_SHIFT 0 |
722 |
| - |
723 |
| -#define ID_AA64ISAR1_APA_NI 0x0 |
724 |
| -#define ID_AA64ISAR1_APA_ARCHITECTED 0x1 |
725 |
| -#define ID_AA64ISAR1_APA_ARCH_EPAC 0x2 |
726 |
| -#define ID_AA64ISAR1_APA_ARCH_EPAC2 0x3 |
727 |
| -#define ID_AA64ISAR1_APA_ARCH_EPAC2_FPAC 0x4 |
728 |
| -#define ID_AA64ISAR1_APA_ARCH_EPAC2_FPAC_CMB 0x5 |
729 |
| -#define ID_AA64ISAR1_API_NI 0x0 |
730 |
| -#define ID_AA64ISAR1_API_IMP_DEF 0x1 |
731 |
| -#define ID_AA64ISAR1_API_IMP_DEF_EPAC 0x2 |
732 |
| -#define ID_AA64ISAR1_API_IMP_DEF_EPAC2 0x3 |
733 |
| -#define ID_AA64ISAR1_API_IMP_DEF_EPAC2_FPAC 0x4 |
734 |
| -#define ID_AA64ISAR1_API_IMP_DEF_EPAC2_FPAC_CMB 0x5 |
735 |
| -#define ID_AA64ISAR1_GPA_NI 0x0 |
736 |
| -#define ID_AA64ISAR1_GPA_ARCHITECTED 0x1 |
737 |
| -#define ID_AA64ISAR1_GPI_NI 0x0 |
738 |
| -#define ID_AA64ISAR1_GPI_IMP_DEF 0x1 |
739 |
| - |
740 |
| -/* id_aa64isar2 */ |
741 |
| -#define ID_AA64ISAR2_CLEARBHB_SHIFT 28 |
742 |
| -#define ID_AA64ISAR2_APA3_SHIFT 12 |
743 |
| -#define ID_AA64ISAR2_GPA3_SHIFT 8 |
744 |
| -#define ID_AA64ISAR2_RPRES_SHIFT 4 |
745 |
| -#define ID_AA64ISAR2_WFXT_SHIFT 0 |
746 |
| - |
747 |
| -#define ID_AA64ISAR2_RPRES_8BIT 0x0 |
748 |
| -#define ID_AA64ISAR2_RPRES_12BIT 0x1 |
749 |
| -/* |
750 |
| - * Value 0x1 has been removed from the architecture, and is |
751 |
| - * reserved, but has not yet been removed from the ARM ARM |
752 |
| - * as of ARM DDI 0487G.b. |
753 |
| - */ |
754 |
| -#define ID_AA64ISAR2_WFXT_NI 0x0 |
755 |
| -#define ID_AA64ISAR2_WFXT_SUPPORTED 0x2 |
756 |
| - |
757 |
| -#define ID_AA64ISAR2_APA3_NI 0x0 |
758 |
| -#define ID_AA64ISAR2_APA3_ARCHITECTED 0x1 |
759 |
| -#define ID_AA64ISAR2_APA3_ARCH_EPAC 0x2 |
760 |
| -#define ID_AA64ISAR2_APA3_ARCH_EPAC2 0x3 |
761 |
| -#define ID_AA64ISAR2_APA3_ARCH_EPAC2_FPAC 0x4 |
762 |
| -#define ID_AA64ISAR2_APA3_ARCH_EPAC2_FPAC_CMB 0x5 |
763 |
| - |
764 |
| -#define ID_AA64ISAR2_GPA3_NI 0x0 |
765 |
| -#define ID_AA64ISAR2_GPA3_ARCHITECTED 0x1 |
766 |
| - |
767 | 692 | /* id_aa64pfr0 */
|
768 | 693 | #define ID_AA64PFR0_CSV3_SHIFT 60
|
769 | 694 | #define ID_AA64PFR0_CSV2_SHIFT 56
|
|
811 | 736 | #define ID_AA64PFR1_MTE 0x2
|
812 | 737 | #define ID_AA64PFR1_MTE_ASYMM 0x3
|
813 | 738 |
|
814 |
| -/* id_aa64zfr0 */ |
815 |
| -#define ID_AA64ZFR0_F64MM_SHIFT 56 |
816 |
| -#define ID_AA64ZFR0_F32MM_SHIFT 52 |
817 |
| -#define ID_AA64ZFR0_I8MM_SHIFT 44 |
818 |
| -#define ID_AA64ZFR0_SM4_SHIFT 40 |
819 |
| -#define ID_AA64ZFR0_SHA3_SHIFT 32 |
820 |
| -#define ID_AA64ZFR0_BF16_SHIFT 20 |
821 |
| -#define ID_AA64ZFR0_BITPERM_SHIFT 16 |
822 |
| -#define ID_AA64ZFR0_AES_SHIFT 4 |
823 |
| -#define ID_AA64ZFR0_SVEVER_SHIFT 0 |
824 |
| - |
825 |
| -#define ID_AA64ZFR0_F64MM 0x1 |
826 |
| -#define ID_AA64ZFR0_F32MM 0x1 |
827 |
| -#define ID_AA64ZFR0_I8MM 0x1 |
828 |
| -#define ID_AA64ZFR0_BF16 0x1 |
829 |
| -#define ID_AA64ZFR0_SM4 0x1 |
830 |
| -#define ID_AA64ZFR0_SHA3 0x1 |
831 |
| -#define ID_AA64ZFR0_BITPERM 0x1 |
832 |
| -#define ID_AA64ZFR0_AES 0x1 |
833 |
| -#define ID_AA64ZFR0_AES_PMULL 0x2 |
834 |
| -#define ID_AA64ZFR0_SVEVER_SVE2 0x1 |
835 |
| - |
836 |
| -/* id_aa64smfr0 */ |
837 |
| -#define ID_AA64SMFR0_FA64_SHIFT 63 |
838 |
| -#define ID_AA64SMFR0_I16I64_SHIFT 52 |
839 |
| -#define ID_AA64SMFR0_F64F64_SHIFT 48 |
840 |
| -#define ID_AA64SMFR0_I8I32_SHIFT 36 |
841 |
| -#define ID_AA64SMFR0_F16F32_SHIFT 35 |
842 |
| -#define ID_AA64SMFR0_B16F32_SHIFT 34 |
843 |
| -#define ID_AA64SMFR0_F32F32_SHIFT 32 |
844 |
| - |
845 |
| -#define ID_AA64SMFR0_FA64 0x1 |
846 |
| -#define ID_AA64SMFR0_I16I64 0xf |
847 |
| -#define ID_AA64SMFR0_F64F64 0x1 |
848 |
| -#define ID_AA64SMFR0_I8I32 0xf |
849 |
| -#define ID_AA64SMFR0_F16F32 0x1 |
850 |
| -#define ID_AA64SMFR0_B16F32 0x1 |
851 |
| -#define ID_AA64SMFR0_F32F32 0x1 |
852 |
| - |
853 | 739 | /* id_aa64mmfr0 */
|
854 | 740 | #define ID_AA64MMFR0_ECV_SHIFT 60
|
855 | 741 | #define ID_AA64MMFR0_FGT_SHIFT 56
|
|
1084 | 970 | #define MVFR2_FPMISC_SHIFT 4
|
1085 | 971 | #define MVFR2_SIMDMISC_SHIFT 0
|
1086 | 972 |
|
1087 |
| -#define DCZID_DZP_SHIFT 4 |
1088 |
| -#define DCZID_BS_SHIFT 0 |
1089 |
| - |
1090 | 973 | #define CPACR_EL1_FPEN_EL1EN (BIT(20)) /* enable EL1 access */
|
1091 | 974 | #define CPACR_EL1_FPEN_EL0EN (BIT(21)) /* enable EL0 access, if EL1EN set */
|
1092 | 975 |
|
|
1121 | 1004 | #define SYS_RGSR_EL1_SEED_MASK 0xffffUL
|
1122 | 1005 |
|
1123 | 1006 | /* GMID_EL1 field definitions */
|
1124 |
| -#define SYS_GMID_EL1_BS_SHIFT 0 |
1125 |
| -#define SYS_GMID_EL1_BS_SIZE 4 |
| 1007 | +#define GMID_EL1_BS_SHIFT 0 |
| 1008 | +#define GMID_EL1_BS_SIZE 4 |
1126 | 1009 |
|
1127 | 1010 | /* TFSR{,E0}_EL1 bit definitions */
|
1128 | 1011 | #define SYS_TFSR_EL1_TF0_SHIFT 0
|
|
1324 | 1207 |
|
1325 | 1208 | #endif
|
1326 | 1209 |
|
| 1210 | +#define SYS_FIELD_GET(reg, field, val) \ |
| 1211 | + FIELD_GET(reg##_##field##_MASK, val) |
| 1212 | + |
1327 | 1213 | #define SYS_FIELD_PREP(reg, field, val) \
|
1328 | 1214 | FIELD_PREP(reg##_##field##_MASK, val)
|
1329 | 1215 |
|
|
0 commit comments