target-arm: Pass mmu_idx to get_phys_addr()
commitd364970287c0ba68979711928c15e5d37414f87f
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Feb 2015 13:37:24 +0000 (5 13:37 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Feb 2015 13:37:24 +0000 (5 13:37 +0000)
treeac52ad7654bf87a7c6f76e85fc790866d35dc8e4
parent060e8a48cb84d41d4ac36e4bb29d9c14ed7168b6
target-arm: Pass mmu_idx to get_phys_addr()

Make all the callers of get_phys_addr() pass it the correct
mmu_idx rather than just a simple "is_user" flag. This includes
properly decoding the AT/ATS system instructions; we include the
logic for handling all the opc1/opc2 cases because we'll need
them later for supporting EL2/EL3, even if we don't have the
regdef stanzas yet.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Greg Bellows <greg.bellows@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target-arm/helper.c