From 3c7b48b74cb017ab6da7c3c0bc205a03943a6274 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Mon, 1 Mar 2010 04:11:28 +0000 Subject: Target specific usermode cleanup Disable various target specific code that is only relevant to system emulation. Signed-off-by: Paul Brook --- target-ppc/cpu.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'target-ppc') diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index cecc6e2cd5..2ad4486727 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -332,6 +332,7 @@ union ppc_avr_t { uint64_t u64[2]; }; +#if !defined(CONFIG_USER_ONLY) /* Software TLB cache */ typedef struct ppc6xx_tlb_t ppc6xx_tlb_t; struct ppc6xx_tlb_t { @@ -354,6 +355,7 @@ union ppc_tlb_t { ppc6xx_tlb_t tlb6; ppcemb_tlb_t tlbe; }; +#endif typedef struct ppc_slb_t ppc_slb_t; struct ppc_slb_t { @@ -699,6 +701,7 @@ struct CPUPPCState { int (*osi_call)(struct CPUPPCState *env); }; +#if !defined(CONFIG_USER_ONLY) /* Context used internally during MMU translations */ typedef struct mmu_ctx_t mmu_ctx_t; struct mmu_ctx_t { @@ -710,6 +713,7 @@ struct mmu_ctx_t { int key; /* Access key */ int nx; /* Non-execute area */ }; +#endif /*****************************************************************************/ CPUPPCState *cpu_ppc_init (const char *cpu_model); @@ -724,8 +728,10 @@ int cpu_ppc_signal_handler (int host_signum, void *pinfo, int cpu_ppc_handle_mmu_fault (CPUPPCState *env, target_ulong address, int rw, int mmu_idx, int is_softmmu); #define cpu_handle_mmu_fault cpu_ppc_handle_mmu_fault +#if !defined(CONFIG_USER_ONLY) int get_physical_address (CPUPPCState *env, mmu_ctx_t *ctx, target_ulong vaddr, int rw, int access_type); +#endif void do_interrupt (CPUPPCState *env); void ppc_hw_interrupt (CPUPPCState *env); -- cgit v1.2.3