On 12/01/2017 10:44 AM, Peter Maydell wrote: > For the TT instruction we're going to need to do an MPU lookup that > also tells us which MPU region the access hit. This requires us > to do the MPU lookup without first doing the SAU security access > check, so pull the MPU lookup parts of get_phys_addr_pmsav8() > out into their own function. > > The TT instruction also needs to know the MPU region number which > the lookup hit, so provide this information to the caller of the > MPU lookup code, even though get_phys_addr_pmsav8() doesn't > need to know it. > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > --- > target/arm/helper.c | 130 > +++++++++++++++++++++++++++++++--------------------- > 1 file changed, 79 insertions(+), 51 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~