mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
target/arm: Add arm_hcr_el2_nvx_eff
Implement the pseudocode function EffectiveHCR_EL2_NVx. 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-39-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
committed by
Peter Maydell
parent
f0fdbfae97
commit
9e703a01f0
@@ -2235,6 +2235,7 @@ static inline bool arm_is_el2_enabled(CPUARMState *env)
|
||||
*/
|
||||
uint64_t arm_hcr_el2_eff_secstate(CPUARMState *env, ARMSecuritySpace space);
|
||||
uint64_t arm_hcr_el2_eff(CPUARMState *env);
|
||||
uint64_t arm_hcr_el2_nvx_eff(CPUARMState *env);
|
||||
uint64_t arm_hcrx_el2_eff(CPUARMState *env);
|
||||
|
||||
/*
|
||||
|
||||
@@ -3904,6 +3904,16 @@ uint64_t arm_hcr_el2_eff(CPUARMState *env)
|
||||
return arm_hcr_el2_eff_secstate(env, arm_security_space_below_el3(env));
|
||||
}
|
||||
|
||||
uint64_t arm_hcr_el2_nvx_eff(CPUARMState *env)
|
||||
{
|
||||
uint64_t hcr = arm_hcr_el2_eff(env);
|
||||
|
||||
if (!(hcr & HCR_NV)) {
|
||||
return 0; /* CONSTRAINED UNPREDICTABLE wrt NV1 */
|
||||
}
|
||||
return hcr & (HCR_NV2 | HCR_NV1 | HCR_NV);
|
||||
}
|
||||
|
||||
/*
|
||||
* Corresponds to ARM pseudocode function ELIsInHost().
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user