Re: [Qemu-devel] [PATCH v3 2/3] target/arm: Use arm_hcr_el2_eff more places

2018-12-10 Thread Peter Maydell
On Thu, 6 Dec 2018 at 17:55, Richard Henderson wrote: > > Since arm_hcr_el2_eff includes a check against > arm_is_secure_below_el3, we can often remove a > nearby check against secure state. > > In some cases, sort the call to arm_hcr_el2_eff > to the end of a short-circuit logical sequence. > > S

[Qemu-devel] [PATCH v3 2/3] target/arm: Use arm_hcr_el2_eff more places

2018-12-06 Thread Richard Henderson
Since arm_hcr_el2_eff includes a check against arm_is_secure_below_el3, we can often remove a nearby check against secure state. In some cases, sort the call to arm_hcr_el2_eff to the end of a short-circuit logical sequence. Signed-off-by: Richard Henderson --- v3: Do not change regime_translati