]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/cpu.h
target/arm: Introduce arm_mmu_idx
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 21 Jan 2019 10:23:12 +0000 (10:23 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Jan 2019 10:38:54 +0000 (10:38 +0000)
commit50494a279dab22a015aba9501a94fcc3cd52140e
tree0a2d2ab7d036d1c21606e7399ba04440eff54e19
parent65e4655c609a4a2fd428459d3efb62b704488fd6
target/arm: Introduce arm_mmu_idx

The pattern

  ARMMMUIdx mmu_idx = core_to_arm_mmu_idx(env, cpu_mmu_index(env, false));

is computing the full ARMMMUIdx, stripping off the ARM bits,
and then putting them back.

Avoid the extra two steps with the appropriate helper function.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190108223129.5570-17-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.h
target/arm/helper.c
target/arm/internals.h