target/arm: Implement RAZ/WI HACTLR2

The v8 AArch32 HACTLR2 register maps to bits [63:32] of ACTLR_EL2.
We implement ACTLR_EL2 as RAZ/WI, so make HACTLR2 also RAZ/WI.
(We put the regdef next to ACTLR_EL2 as a reminder in case we
ever make ACTLR_EL2 something other than RAZ/WI).

Backports commit 0e0456ab8895a5e85998904549e331d36c2692a5 from qemu
This commit is contained in:
Peter Maydell 2018-08-25 04:13:30 -04:00 committed by Lioncash
parent 241fb78efc
commit cc57e03da4
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -4703,6 +4703,14 @@ void register_cp_regs_for_features(ARMCPU *cpu)
REGINFO_SENTINEL
};
define_arm_cp_regs(cpu, auxcr_reginfo);
if (arm_feature(env, ARM_FEATURE_V8)) {
/* HACTLR2 maps to ACTLR_EL2[63:32] and is not in ARMv7 */
ARMCPRegInfo hactlr2_reginfo = {
"HACTLR2", 15,1,0, 0,4,3, ARM_CP_STATE_AA32,
ARM_CP_CONST, PL2_RW, 0, NULL, 0
};
define_one_arm_cp_reg(cpu, &hactlr2_reginfo);
}
}
if (arm_feature(env, ARM_FEATURE_CBAR)) {