target/arm: Use arm_hcr_el2_nvx_eff in access_nv1
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20251008215613.300150-40-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
9e703a01f0
commit
3a6a957b89
1 changed files with 1 additions and 1 deletions
|
|
@ -3427,7 +3427,7 @@ static CPAccessResult access_nv1(CPUARMState *env, const ARMCPRegInfo *ri,
|
|||
bool isread)
|
||||
{
|
||||
if (arm_current_el(env) == 1) {
|
||||
uint64_t hcr_nv = arm_hcr_el2_eff(env) & (HCR_NV | HCR_NV1 | HCR_NV2);
|
||||
uint64_t hcr_nv = arm_hcr_el2_nvx_eff(env);
|
||||
|
||||
if (hcr_nv == (HCR_NV | HCR_NV1)) {
|
||||
return CP_ACCESS_TRAP_EL2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue