target/arm: Split out arm_mmu_idx_el
commit164690b29f9eaf69fe641859bc9f8954f12e691d
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 23 Oct 2019 15:00:46 +0000 (23 11:00 -0400)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 24 Oct 2019 16:16:28 +0000 (24 17:16 +0100)
tree5261b292355ccfdc3ec7604fd8c9dd32be34adbd
parent3d74e2e9ffc9fda4da2c29ec8975e2115aaaa603
target/arm: Split out arm_mmu_idx_el

Avoid calling arm_current_el() twice.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20191023150057.25731-14-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c
target/arm/internals.h