OSDN Git Service

target-arm: Use correct memory attributes for page table walks
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 26 Apr 2015 15:49:25 +0000 (16:49 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Sun, 26 Apr 2015 15:49:25 +0000 (16:49 +0100)
commitebca90e4c3aaaae5ed1ee7c569dea00d5d6ed476
treed3dcd5cc8e765b245f6519ada2054654e481616b
parent8bf5b6a9c1911d2c8473385fc0cebfaaeef42dbc
target-arm: Use correct memory attributes for page table walks

Factor out the page table walk memory accesses into their own function,
so that we can specify the correct S/NS memory attributes for them.
This will also provide a place to use the correct endianness and
handle the need for a stage-2 translation when virtualization is
supported.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
target-arm/helper.c