target-arm: convert check_ap to ap_to_rw_prot
commit0fbf5238203041f734c51b49778223686f14366b
authorAndrew Jones <drjones@redhat.com>
Mon, 16 Mar 2015 12:30:46 +0000 (16 12:30 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 16 Mar 2015 12:30:46 +0000 (16 12:30 +0000)
treeebd371b03479011f65da3beedf169e08dac3ceee
parentf421f05754ac5aabe15f12051390204116408b00
target-arm: convert check_ap to ap_to_rw_prot

Instead of mixing access permission checking with access permissions
to page protection flags translation, just do the translation, and
leave it to the caller to check the protection flags against the access
type. Also rename to ap_to_rw_prot to better describe the new behavior.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1426099139-14463-2-git-send-email-drjones@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/helper.c