arm: implement cache/shareability attribute bits for PAR registers
commit5b2d261d60caf9d988d91ca1e02392d6fc8ea104
authorAndrew Baumann <Andrew.Baumann@microsoft.com>
Tue, 7 Nov 2017 13:03:51 +0000 (7 13:03 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 7 Nov 2017 13:03:51 +0000 (7 13:03 +0000)
tree2fbc04ceff5ea6728ed12686a20e63b3d820d2b4
parent5853e92207193e967abf5e4c25b4a551c7604725
arm: implement cache/shareability attribute bits for PAR registers

On a successful address translation instruction, PAR is supposed to
contain cacheability and shareability attributes determined by the
translation. We previously returned 0 for these bits (in line with the
general strategy of ignoring caches and memory attributes), but some
guest OSes may depend on them.

This patch collects the attribute bits in the page-table walk, and
updates PAR with the correct attributes for all LPAE translations.
Short descriptor formats still return 0 for these bits, as in the
prior implementation.

Signed-off-by: Andrew Baumann <Andrew.Baumann@microsoft.com>
Message-id: 20171031223830.4608-1-Andrew.Baumann@microsoft.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c