]> git.proxmox.com Git - mirror_qemu.git/commit
target-arm: Use mmu_idx in get_phys_addr()
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Feb 2015 13:37:24 +0000 (13:37 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Feb 2015 13:37:24 +0000 (13:37 +0000)
commit0480f69abf849ca0d48928cc6c669c1c7264239b
treed271946edff2c05b76f85db23540fd5d55ffb2a6
parentd364970287c0ba68979711928c15e5d37414f87f
target-arm: Use mmu_idx in get_phys_addr()

Now we have the mmu_idx in get_phys_addr(), use it correctly to
determine the behaviour of virtual to physical address translations,
rather than using just an is_user flag and the current CPU state.

Some TODO comments have been added to indicate where changes will
need to be made to add EL2 and 64-bit EL3 support.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Greg Bellows <greg.bellows@linaro.org>
target-arm/helper.c