Re: [PATCH 4/4] target/arm: adjust CPTR_EL2 according to HCR_EL2.E2H

2020-12-08 Thread Richard Henderson
On 12/6/20 10:46 PM, LIU Zhiwei wrote: > 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. > > Reviewed-by: Richard Henderson

[PATCH 4/4] target/arm: adjust CPTR_EL2 according to HCR_EL2.E2H

2020-12-06 Thread LIU Zhiwei
>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. Reviewed-by: Richard Henderson Signed-off-by: LIU Zhiwei --- target/arm/helper.c