|
From: | Richard Henderson |
Subject: | Re: [PATCH 7/8] target/arm: Implement FEAT_ECV CNTPOFF_EL2 handling |
Date: | Fri, 1 Mar 2024 11:54:53 -1000 |
User-agent: | Mozilla Thunderbird |
On 3/1/24 08:32, Peter Maydell wrote:
+static uint64_t gt_phys_raw_cnt_offset(CPUARMState *env) +{ + if ((env->cp15.scr_el3 & SCR_ECVEN) && + FIELD_EX64(env->cp15.cnthctl_el2, CNTHCTL, ECV) && + arm_is_el2_enabled(env) && + (arm_hcr_el2_eff(env) & (HCR_E2H | HCR_TGE)) != (HCR_E2H | HCR_TGE)) {
arm_hcr_el2_eff checks arm_is_el2_enabled and returns 0 if disabled. Anyway, Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |