diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-01-21 10:23:12 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2019-01-21 10:38:54 +0000 |
commit | 50494a279dab22a015aba9501a94fcc3cd52140e (patch) | |
tree | 0a2d2ab7d036d1c21606e7399ba04440eff54e19 /target/mips/helper.c | |
parent | 65e4655c609a4a2fd428459d3efb62b704488fd6 (diff) | |
download | qemu-50494a279dab22a015aba9501a94fcc3cd52140e.zip qemu-50494a279dab22a015aba9501a94fcc3cd52140e.tar.gz qemu-50494a279dab22a015aba9501a94fcc3cd52140e.tar.bz2 |
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>
Diffstat (limited to 'target/mips/helper.c')
0 files changed, 0 insertions, 0 deletions