target-arm: Add TCR_EL2

Backports commit 06ec4c8c9f9e21b7671c79296f3a47ab63d50067 from qemu
This commit is contained in:
Edgar E. Iglesias 2018-02-12 23:32:35 -05:00 committed by Lioncash
parent 8fc0629227
commit ca6a626ad6
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -2180,6 +2180,8 @@ static const ARMCPRegInfo v8_el3_no_el2_cp_reginfo[] = {
PL2_RW, 0, NULL, 0 },
{ "HMAIR1", 0,10,2, 0,4,1, ARM_CP_STATE_AA32, ARM_CP_CONST,
PL2_RW, 0, NULL, 0 },
{ "TCR_EL2", 0,2,0, 3,4,2, ARM_CP_STATE_BOTH, ARM_CP_CONST,
PL2_RW, 0, NULL, 0 },
REGINFO_SENTINEL
};
@ -2237,6 +2239,9 @@ static const ARMCPRegInfo v8_el2_cp_reginfo[] = {
PL2_RW, 0, NULL, 0, offsetof(CPUARMState, cp15.mair_el[2]) },
{ "HMAIR1", 0,10,2, 0,4,1, ARM_CP_STATE_AA32, ARM_CP_ALIAS,
PL2_RW, 0, NULL, 0, offsetofhigh32(CPUARMState, cp15.mair_el[2]) },
{ "TCR_EL2", 0,2,0, 3,4,2, ARM_CP_STATE_BOTH, 0,
PL2_RW, 0, NULL, 0, offsetof(CPUARMState, cp15.tcr_el[2]), {0, 0},
NULL, NULL, vmsa_tcr_el1_write, NULL, raw_write, vmsa_ttbcr_reset },
REGINFO_SENTINEL
};