diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2022-12-16 16:15:44 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-27 22:29:01 +0100 |
commit | 414fa2aaa2ba5e4ce9b4382be1ed60b3d0dac06a (patch) | |
tree | e8cc5e383e7b573be57a892f169f27d1b682c0fd /target/ppc/internal.h | |
parent | 8f15d6179aa0beff4ee67a48c39ec9a0ec1e719b (diff) | |
download | qemu-414fa2aaa2ba5e4ce9b4382be1ed60b3d0dac06a.zip qemu-414fa2aaa2ba5e4ce9b4382be1ed60b3d0dac06a.tar.gz qemu-414fa2aaa2ba5e4ce9b4382be1ed60b3d0dac06a.tar.bz2 |
target/ppc/internal: Restrict MMU declarations to sysemu
The 'hwaddr' type is only available / meaningful on system emulation.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221217172907.8364-5-philmd@linaro.org>
Diffstat (limited to 'target/ppc/internal.h')
-rw-r--r-- | target/ppc/internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/ppc/internal.h b/target/ppc/internal.h index 337a362..901bae6 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -242,9 +242,12 @@ static inline int prot_for_access_type(MMUAccessType access_type) g_assert_not_reached(); } +#ifndef CONFIG_USER_ONLY + /* PowerPC MMU emulation */ typedef struct mmu_ctx_t mmu_ctx_t; + bool ppc_xlate(PowerPCCPU *cpu, vaddr eaddr, MMUAccessType access_type, hwaddr *raddrp, int *psizep, int *protp, int mmu_idx, bool guest_visible); @@ -266,6 +269,8 @@ struct mmu_ctx_t { int nx; /* Non-execute area */ }; +#endif /* !CONFIG_USER_ONLY */ + /* Common routines used by software and hardware TLBs emulation */ static inline int pte_is_valid(target_ulong pte0) { |