[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 6/7] target/arm: Factor MPU lookup code out of g
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [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~
- [Qemu-devel] [PATCH 0/7] armv8m: Implement TT, and other bugfixes, Peter Maydell, 2017/12/01
- [Qemu-devel] [PATCH 1/7] target/arm: Handle SPSEL and current stack being out of sync in MSP/PSP reads, Peter Maydell, 2017/12/01
- [Qemu-devel] [PATCH 3/7] target/arm: Add missing M profile case to regime_is_user(), Peter Maydell, 2017/12/01
- [Qemu-devel] [PATCH 2/7] target/arm: Allow explicit writes to CONTROL.SPSEL in Handler mode, Peter Maydell, 2017/12/01
- [Qemu-devel] [PATCH 6/7] target/arm: Factor MPU lookup code out of get_phys_addr_pmsav8(), Peter Maydell, 2017/12/01
- [Qemu-devel] [PATCH 5/7] target/arm: Create new arm_v7m_mmu_idx_for_secstate_and_priv(), Peter Maydell, 2017/12/01
- [Qemu-devel] [PATCH 4/7] target/arm: Split M profile MNegPri mmu index into user and priv, Peter Maydell, 2017/12/01
- [Qemu-devel] [PATCH 7/7] target/arm: Implement TT instruction, Peter Maydell, 2017/12/01