diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-08-22 08:26:36 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-09-22 16:38:27 +0100 |
commit | de05a709ec2b3ddf7a739d85ef8cdd9d5a02b6e1 (patch) | |
tree | 8201fbd3038f6ab4f60018de2ba112abab62550f /target/arm/internals.h | |
parent | 3a661024cc680104ce2cd21f8f5466dacba6f405 (diff) | |
download | qemu-de05a709ec2b3ddf7a739d85ef8cdd9d5a02b6e1.zip qemu-de05a709ec2b3ddf7a739d85ef8cdd9d5a02b6e1.tar.gz qemu-de05a709ec2b3ddf7a739d85ef8cdd9d5a02b6e1.tar.bz2 |
target/arm: Create GetPhysAddrResult
Combine 5 output pointer arguments from get_phys_addr
into a single struct. Adjust all callers.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220822152741.1617527-2-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/internals.h')
-rw-r--r-- | target/arm/internals.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/target/arm/internals.h b/target/arm/internals.h index bf60cd5..e9743d3 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -1142,11 +1142,18 @@ typedef struct ARMCacheAttrs { bool is_s2_format:1; } ARMCacheAttrs; +/* Fields that are valid upon success. */ +typedef struct GetPhysAddrResult { + hwaddr phys; + target_ulong page_size; + int prot; + MemTxAttrs attrs; + ARMCacheAttrs cacheattrs; +} GetPhysAddrResult; + bool get_phys_addr(CPUARMState *env, target_ulong address, MMUAccessType access_type, ARMMMUIdx mmu_idx, - hwaddr *phys_ptr, MemTxAttrs *attrs, int *prot, - target_ulong *page_size, - ARMMMUFaultInfo *fi, ARMCacheAttrs *cacheattrs) + GetPhysAddrResult *result, ARMMMUFaultInfo *fi) __attribute__((nonnull)); void arm_log_exception(CPUState *cs); |