[PATCH v5 42/76] target/arm: Use arm_hcr_el2_nvx_eff in access_nv1

Richard Henderson posted 76 patches 5 days, 21 hours ago
[PATCH v5 42/76] target/arm: Use arm_hcr_el2_nvx_eff in access_nv1
Posted by Richard Henderson 5 days, 21 hours ago
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 target/arm/helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/arm/helper.c b/target/arm/helper.c
index e3ea5254c5..8b5ae0c543 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -3423,7 +3423,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;
-- 
2.43.0