target/arm: use arm_is_el2_enabled() where applicable
commite6ef0169264b00cce552404f689ce137018ff290
authorRémi Denis-Courmont <remi.denis.courmont@huawei.com>
Tue, 12 Jan 2021 10:44:55 +0000 (12 12:44 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 19 Jan 2021 14:38:51 +0000 (19 14:38 +0000)
tree5025f191d54239ffe6e4353dfa23b2aebcc259e3
parentf3ee5160ce3c03795a28e16d1a0b4916a6c959f4
target/arm: use arm_is_el2_enabled() where applicable

Do not assume that EL2 is available in and only in non-secure context.
That equivalence is broken by ARMv8.4-SEL2.

Signed-off-by: Rémi Denis-Courmont <remi.denis.courmont@huawei.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210112104511.36576-3-remi.denis.courmont@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.h
target/arm/helper-a64.c
target/arm/helper.c