qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 5/9] target/arm: Add ARMCacheAttrs to the signature of pms


From: Peter Maydell
Subject: Re: [PATCH v3 5/9] target/arm: Add ARMCacheAttrs to the signature of pmsav8_mpu_lookup
Date: Tue, 27 Sep 2022 14:05:54 +0100

On Sat, 20 Aug 2022 at 15:19, <tobias.roehmel@rwth-aachen.de> wrote:
>
> From: Tobias Röhmel <tobias.roehmel@rwth-aachen.de>
>
> Add ARMCacheAttrs to the signature of pmsav8_mpu_lookup to prepare
> for the Cortex-R52 MPU which uses and combines cache attributes
> of different translation levels.
>
> Signed-off-by: Tobias Röhmel <tobias.roehmel@rwth-aachen.de>

> +bool pmsav8_mpu_lookup(CPUARMState *env, uint32_t address,
> +                       MMUAccessType access_type, ARMMMUIdx mmu_idx,
> +                       hwaddr *phys_ptr, MemTxAttrs *txattrs,
> +                       int *prot, bool *is_subpage,
> +                       ARMMMUFaultInfo *fi, uint32_t *mregion,
> +                       ARMCacheAttrs *cacheattrs);

When you next rebase this series on current upstream, you'll find
there's been a refactoring of the ptw.c code, so that instead of
passing half a dozen pointers to each function, we pass a
single GetPhysAddrResult* for the function to fill in. That
struct includes an "ARMCacheAttrs cacheattrs" field, so
pmsav8_mpu_lookup() has access to fill it in, and this
patch won't be necessary.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]