Peter Maydell <peter.mayd...@linaro.org> writes: > In the gicv3_{irq,fiq,irqfiq}_access() functions, in the > arm_current_el(env) == 3 case we do the following test: > if (!is_a64(env) && !arm_is_el3_or_mon(env)) { > r = CP_ACCESS_TRAP_EL3; > } > > In this check, the "!is_a64(env)" is redundant, because if > we are at EL3 and in AArch64 then arm_is_el3_or_mon() will > return true and we will skip the if() body anyway. > > Remove the unnecessary tests. > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
Reviewed-by: Alex Bennée <alex.ben...@linaro.org> -- Alex Bennée Virtualisation Tech Lead @ Linaro