On 8/10/20 11:07 PM, LIU Zhiwei wrote:
> if (el <= 2 && !arm_is_secure_below_el3(env)) {
> -if (env->cp15.cptr_el[2] & CPTR_TZ) {
> -return 2;
> -}
> -if (env->cp15.cptr_el[2] & CPTR_TFP) {
> -return 0;
> +if ((arm_hcr_el2_eff(env) & HCR_
>From DDI0487Fc_armv8_arm.pdf, the CPTR_EL2 has two kinds
of layouts according to HCR_EL2.E2H.
When HCR_EL2.E2H is 1, fp_exception_el should refer to
HCR_EL2.FPEN and sve_exception_el should refer to HCR_EL2.ZEN.
Change-Id: If1c8f88db9fb505c36211ceafbf25e838ed96ec0
Signed-off-by: LIU Zhiwei
---