mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
3d74e2e9ff
commit
164690b29f
2 changed files with 16 additions and 5 deletions
|
@ -949,6 +949,15 @@ void arm_cpu_update_virq(ARMCPU *cpu);
|
|||
*/
|
||||
void arm_cpu_update_vfiq(ARMCPU *cpu);
|
||||
|
||||
/**
|
||||
* arm_mmu_idx_el:
|
||||
* @env: The cpu environment
|
||||
* @el: The EL to use.
|
||||
*
|
||||
* Return the full ARMMMUIdx for the translation regime for EL.
|
||||
*/
|
||||
ARMMMUIdx arm_mmu_idx_el(CPUARMState *env, int el);
|
||||
|
||||
/**
|
||||
* arm_mmu_idx:
|
||||
* @env: The cpu environment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue