On 08/02/2017 09:43 AM, Peter Maydell wrote: > 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.mayd...@linaro.org> > --- > target/arm/helper.c | 38 ++++++++++++++++++++++---------------- > 1 file changed, 22 insertions(+), 16 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~