aboutsummaryrefslogtreecommitdiff
path: root/util/envlist.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2023-08-31 16:35:01 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-09-01 15:40:05 +0100
commit1458d2a9e938d43c0b859b1ee75ecaa674d92564 (patch)
treec5a73afbaf9bbb96d1b4cfa574f9f4cd3d3a0168 /util/envlist.c
parenta06ecdb0dc67f9a2b8a5306901b140d31a139279 (diff)
target/arm: Implement FEAT_MOPS enable bits
FEAT_MOPS defines a handful of new enable bits: * HCRX_EL2.MSCEn, SCTLR_EL1.MSCEn, SCTLR_EL2.MSCen: define whether the new insns should UNDEF or not * HCRX_EL2.MCE2: defines whether memops exceptions from EL1 should be taken to EL1 or EL2 Since we don't sanitise what bits can be written for the SCTLR registers, we only need to handle the new bits in HCRX_EL2, and define SCTLR_MSCEN for the new SCTLR bit value. The precedence of "HCRX bits acts as 0 if SCR_EL3.HXEn is 0" versus "bit acts as 1 if EL2 disabled" is not clear from the register definition text, but it is clear in the CheckMOPSEnabled() pseudocode(), so we follow that. We'll have to check whether other bits we need to implement in future follow the same logic or not. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'util/envlist.c')
0 files changed, 0 insertions, 0 deletions