mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
target/arm: Apply access checks to neoverse-n1 special registers
Access to many of the special registers is enabled or disabled by ACTLR_EL[23], which we implement as constant 0, which means that all writes outside EL3 should trap. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20230811214031.171020-7-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
d8100822d6
commit
6d482423fc
3 changed files with 41 additions and 11 deletions
|
@ -319,8 +319,8 @@ static CPAccessResult access_tpm(CPUARMState *env, const ARMCPRegInfo *ri,
|
|||
}
|
||||
|
||||
/* Check for traps from EL1 due to HCR_EL2.TVM and HCR_EL2.TRVM. */
|
||||
static CPAccessResult access_tvm_trvm(CPUARMState *env, const ARMCPRegInfo *ri,
|
||||
bool isread)
|
||||
CPAccessResult access_tvm_trvm(CPUARMState *env, const ARMCPRegInfo *ri,
|
||||
bool isread)
|
||||
{
|
||||
if (arm_current_el(env) == 1) {
|
||||
uint64_t trap = isread ? HCR_TRVM : HCR_TVM;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue