[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 09/14] target/arm: Don't shift attrs in get_phys_addr_lpae
From: |
Peter Maydell |
Subject: |
Re: [PATCH v5 09/14] target/arm: Don't shift attrs in get_phys_addr_lpae |
Date: |
Fri, 21 Oct 2022 10:40:17 +0100 |
On Fri, 21 Oct 2022 at 10:27, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> On 21/10/22 00:35, Richard Henderson wrote:
> > Leave the upper and lower attributes in the place they originate
> > from in the descriptor. Shifting them around is confusing, since
> > one cannot read the bit numbers out of the manual. Also, new
> > attributes have been added which would alter the shifts.
> >
> > Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
> > Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> > ---
> > target/arm/ptw.c | 31 +++++++++++++++----------------
> > 1 file changed, 15 insertions(+), 16 deletions(-)
>
> > if (regime_is_stage2(mmu_idx)) {
> > ns = mmu_idx == ARMMMUIdx_Stage2;
> > - xn = extract32(attrs, 11, 2);
> > + xn = extract64(attrs, 54, 2);
>
> 54 -> 53?
Yes. I spotted that in review of v3 but I guess we lost the fix
along the way somewhere.
-- PMM
- Re: [PATCH v5 01/14] target/arm: Introduce regime_is_stage2, (continued)
- [PATCH v5 03/14] target/arm: Add isar predicates for FEAT_HAFDBS, Richard Henderson, 2022/10/20
- [PATCH v5 04/14] target/arm: Extract HA and HD in aa64_va_parameters, Richard Henderson, 2022/10/20
- [PATCH v5 05/14] target/arm: Move S1_ptw_translate outside arm_ld[lq]_ptw, Richard Henderson, 2022/10/20
- [PATCH v5 06/14] target/arm: Add ARMFault_UnsuppAtomicUpdate, Richard Henderson, 2022/10/20
- [PATCH v5 07/14] target/arm: Remove loop from get_phys_addr_lpae, Richard Henderson, 2022/10/20
- [PATCH v5 08/14] target/arm: Fix fault reporting in get_phys_addr_lpae, Richard Henderson, 2022/10/20
- [PATCH v5 09/14] target/arm: Don't shift attrs in get_phys_addr_lpae, Richard Henderson, 2022/10/20
- [PATCH v5 10/14] target/arm: Consider GP an attribute in get_phys_addr_lpae, Richard Henderson, 2022/10/20
- [PATCH v5 11/14] target/arm: Tidy merging of attributes from descriptor and table, Richard Henderson, 2022/10/20
- [PATCH v5 13/14] target/arm: Implement FEAT_HAFDBS, dirty bit portion, Richard Henderson, 2022/10/20
- [PATCH v5 12/14] target/arm: Implement FEAT_HAFDBS, access flag portion, Richard Henderson, 2022/10/20
- [PATCH v5 14/14] target/arm: Use the max page size in a 2-stage ptw, Richard Henderson, 2022/10/20