@@ -671,7 +671,7 @@ static const ARMCPRegInfo v6_cp_reginfo[] = {
671671 */
672672 { .name = "WFAR" , .cp = 15 , .crn = 6 , .crm = 0 , .opc1 = 0 , .opc2 = 1 ,
673673 .access = PL1_RW , .type = ARM_CP_CONST , .resetvalue = 0 , },
674- { .name = "CPACR " , .state = ARM_CP_STATE_BOTH , .opc0 = 3 ,
674+ { .name = "CPACR_EL1 " , .state = ARM_CP_STATE_BOTH , .opc0 = 3 ,
675675 .crn = 1 , .crm = 0 , .opc1 = 0 , .opc2 = 2 , .accessfn = cpacr_access ,
676676 .fgt = FGT_CPACR_EL1 ,
677677 .nv2_redirect_offset = 0x100 | NV2_REDIR_NV1 ,
@@ -2018,7 +2018,7 @@ static const ARMCPRegInfo generic_timer_cp_reginfo[] = {
20182018 .resetfn = arm_gt_cntfrq_reset ,
20192019 },
20202020 /* overall control: mostly access permissions */
2021- { .name = "CNTKCTL " , .state = ARM_CP_STATE_BOTH ,
2021+ { .name = "CNTKCTL_EL1 " , .state = ARM_CP_STATE_BOTH ,
20222022 .opc0 = 3 , .opc1 = 0 , .crn = 14 , .crm = 1 , .opc2 = 0 ,
20232023 .access = PL1_RW ,
20242024 .fieldoffset = offsetof(CPUARMState , cp15 .c14_cntkctl ),
@@ -3048,8 +3048,8 @@ static uint64_t mpidr_read(CPUARMState *env, const ARMCPRegInfo *ri)
30483048}
30493049
30503050static const ARMCPRegInfo lpae_cp_reginfo [] = {
3051- /* NOP AMAIR0/1 */
3052- { .name = "AMAIR0 " , .state = ARM_CP_STATE_BOTH ,
3051+ /* AMAIR0 is mapped to AMAIR_EL1[31:0] */
3052+ { .name = "AMAIR_EL1 " , .state = ARM_CP_STATE_BOTH ,
30533053 .opc0 = 3 , .crn = 10 , .crm = 3 , .opc1 = 0 , .opc2 = 0 ,
30543054 .access = PL1_RW , .accessfn = access_tvm_trvm ,
30553055 .fgt = FGT_AMAIR_EL1 ,
@@ -4430,11 +4430,11 @@ static void define_arm_vh_e2h_redirects_aliases(ARMCPU *cpu)
44304430
44314431 static const struct E2HAlias aliases [] = {
44324432 { K (3 , 0 , 1 , 0 , 0 ), K (3 , 4 , 1 , 0 , 0 ), K (3 , 5 , 1 , 0 , 0 ),
4433- "SCTLR " , "SCTLR_EL2" , "SCTLR_EL12" },
4433+ "SCTLR_EL1 " , "SCTLR_EL2" , "SCTLR_EL12" },
44344434 { K (3 , 0 , 1 , 0 , 3 ), K (3 , 4 , 1 , 0 , 3 ), K (3 , 5 , 1 , 0 , 3 ),
44354435 "SCTLR2_EL1" , "SCTLR2_EL2" , "SCTLR2_EL12" , isar_feature_aa64_sctlr2 },
44364436 { K (3 , 0 , 1 , 0 , 2 ), K (3 , 4 , 1 , 1 , 2 ), K (3 , 5 , 1 , 0 , 2 ),
4437- "CPACR " , "CPTR_EL2" , "CPACR_EL12" },
4437+ "CPACR_EL1 " , "CPTR_EL2" , "CPACR_EL12" },
44384438 { K (3 , 0 , 2 , 0 , 0 ), K (3 , 4 , 2 , 0 , 0 ), K (3 , 5 , 2 , 0 , 0 ),
44394439 "TTBR0_EL1" , "TTBR0_EL2" , "TTBR0_EL12" },
44404440 { K (3 , 0 , 2 , 0 , 1 ), K (3 , 4 , 2 , 0 , 1 ), K (3 , 5 , 2 , 0 , 1 ),
@@ -4458,13 +4458,13 @@ static void define_arm_vh_e2h_redirects_aliases(ARMCPU *cpu)
44584458 { K (3 , 0 , 10 , 2 , 0 ), K (3 , 4 , 10 , 2 , 0 ), K (3 , 5 , 10 , 2 , 0 ),
44594459 "MAIR_EL1" , "MAIR_EL2" , "MAIR_EL12" },
44604460 { K (3 , 0 , 10 , 3 , 0 ), K (3 , 4 , 10 , 3 , 0 ), K (3 , 5 , 10 , 3 , 0 ),
4461- "AMAIR0 " , "AMAIR_EL2" , "AMAIR_EL12" },
4461+ "AMAIR_EL1 " , "AMAIR_EL2" , "AMAIR_EL12" },
44624462 { K (3 , 0 , 12 , 0 , 0 ), K (3 , 4 , 12 , 0 , 0 ), K (3 , 5 , 12 , 0 , 0 ),
4463- "VBAR " , "VBAR_EL2" , "VBAR_EL12" },
4463+ "VBAR_EL1 " , "VBAR_EL2" , "VBAR_EL12" },
44644464 { K (3 , 0 , 13 , 0 , 1 ), K (3 , 4 , 13 , 0 , 1 ), K (3 , 5 , 13 , 0 , 1 ),
44654465 "CONTEXTIDR_EL1" , "CONTEXTIDR_EL2" , "CONTEXTIDR_EL12" },
44664466 { K (3 , 0 , 14 , 1 , 0 ), K (3 , 4 , 14 , 1 , 0 ), K (3 , 5 , 14 , 1 , 0 ),
4467- "CNTKCTL " , "CNTHCTL_EL2" , "CNTKCTL_EL12" },
4467+ "CNTKCTL_EL1 " , "CNTHCTL_EL2" , "CNTKCTL_EL12" },
44684468
44694469 { K (3 , 0 , 1 , 2 , 0 ), K (3 , 4 , 1 , 2 , 0 ), K (3 , 5 , 1 , 2 , 0 ),
44704470 "ZCR_EL1" , "ZCR_EL2" , "ZCR_EL12" , isar_feature_aa64_sve },
@@ -7098,7 +7098,7 @@ void register_cp_regs_for_features(ARMCPU *cpu)
70987098
70997099 if (arm_feature (env , ARM_FEATURE_VBAR )) {
71007100 static const ARMCPRegInfo vbar_cp_reginfo [] = {
7101- { .name = "VBAR " , .state = ARM_CP_STATE_BOTH ,
7101+ { .name = "VBAR_EL1 " , .state = ARM_CP_STATE_BOTH ,
71027102 .opc0 = 3 , .crn = 12 , .crm = 0 , .opc1 = 0 , .opc2 = 0 ,
71037103 .access = PL1_RW , .writefn = vbar_write ,
71047104 .accessfn = access_nv1 ,
@@ -7114,7 +7114,7 @@ void register_cp_regs_for_features(ARMCPU *cpu)
71147114 /* Generic registers whose values depend on the implementation */
71157115 {
71167116 ARMCPRegInfo sctlr = {
7117- .name = "SCTLR " , .state = ARM_CP_STATE_BOTH ,
7117+ .name = "SCTLR_EL1 " , .state = ARM_CP_STATE_BOTH ,
71187118 .opc0 = 3 , .opc1 = 0 , .crn = 1 , .crm = 0 , .opc2 = 0 ,
71197119 .access = PL1_RW , .accessfn = access_tvm_trvm ,
71207120 .fgt = FGT_SCTLR_EL1 ,
0 commit comments