]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Consolidate PMSA handling in get_phys_addr()
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Sep 2017 14:21:51 +0000 (15:21 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 4 Sep 2017 14:21:51 +0000 (15:21 +0100)
commit3279adb95e34dd3d67c66d729458f7784747cf8d
treea328442e29d4cdb13ad777908caaddbc8c471977
parent0e2845689ebdb4ea7174f96f6797e2d8942bd114
target/arm: Consolidate PMSA handling in get_phys_addr()

Currently get_phys_addr() has PMSAv7 handling before the
"is translation disabled?" check, and then PMSAv5 after it.
Tidy this up by making the PMSAv5 code handle the "MPU disabled"
case itself, so that we have all the PMSA code in one place.
This will make adding the PMSAv8 code slightly cleaner, and
also means that pre-v7 PMSA cores benefit from the MPU lookup
logging that the PMSAv7 codepath had.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1501692241-23310-4-git-send-email-peter.maydell@linaro.org
target/arm/helper.c