[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 4/9] target/ppc/internal: Restrict MMU declarations to sysemu
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 4/9] target/ppc/internal: Restrict MMU declarations to sysemu |
Date: |
Sat, 17 Dec 2022 18:29:02 +0100 |
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>
---
target/ppc/internal.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/target/ppc/internal.h b/target/ppc/internal.h
index 337a362205..901bae6d39 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)
{
--
2.38.1
- [PATCH v2 0/9] target/misc: Header cleanups around "cpu.h", Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 1/9] target/alpha: Remove obsolete STATUS document, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 2/9] target/loongarch/cpu: Remove unused "sysbus.h" header, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 3/9] target/loongarch/cpu: Restrict "memory.h" header to sysemu, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 4/9] target/ppc/internal: Restrict MMU declarations to sysemu,
Philippe Mathieu-Daudé <=
- [PATCH v2 5/9] target/ppc/kvm: Remove unused "sysbus.h" header, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 6/9] target/riscv/cpu: Move Floating-Point fields closer, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 7/9] target/riscv/cpu: Restrict some sysemu-specific fields from CPUArchState, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 9/9] target/xtensa/cpu: Include missing "memory.h" header, Philippe Mathieu-Daudé, 2022/12/17
- [PATCH v2 8/9] target/sparc/sysemu: Remove pointless CONFIG_USER_ONLY guard, Philippe Mathieu-Daudé, 2022/12/17