[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 17/62] target/arm: Remove is_subpage argument to pmsav8_mpu_l
From: |
Alex Bennée |
Subject: |
Re: [PATCH 17/62] target/arm: Remove is_subpage argument to pmsav8_mpu_lookup |
Date: |
Wed, 10 Aug 2022 14:11:06 +0100 |
User-agent: |
mu4e 1.8.8; emacs 28.1.91 |
Richard Henderson <richard.henderson@linaro.org> writes:
> This can be made redundant with result->page_size, by moving
> the basic set of page_size from get_phys_addr_pmsav8. We still
> need to overwrite page_size when v8m_security_lookup signals
> a subpage.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
<snip>
>
> ret = pmsav8_mpu_lookup(env, address, access_type, mmu_idx,
> - result, &mpu_is_subpage, fi, NULL);
> - result->page_size =
> - sattrs.subpage || mpu_is_subpage ? 1 : TARGET_PAGE_SIZE;
> + result, fi, NULL);
> + if (sattrs.subpage) {
> + result->page_size = 1;
> + }
We should probably document the meaning of page_size == 1 in the
comments for the definition of GetPhysAddrResult.
> return ret;
> }
--
Alex Bennée
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH 17/62] target/arm: Remove is_subpage argument to pmsav8_mpu_lookup,
Alex Bennée <=