[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [PATCH 6/7] target/arm: Factor MPU lookup code out of get
From: |
Richard Henderson |
Subject: |
Re: [Qemu-arm] [PATCH 6/7] target/arm: Factor MPU lookup code out of get_phys_addr_pmsav8() |
Date: |
Sun, 3 Dec 2017 07:16:21 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
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 <address@hidden>
> ---
> target/arm/helper.c | 130
> +++++++++++++++++++++++++++++++---------------------
> 1 file changed, 79 insertions(+), 51 deletions(-)
Reviewed-by: Richard Henderson <address@hidden>
r~