From c69b6151e7f242b02f261f321c392e5ef933176f Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 12 Mar 2013 00:31:08 +0000 Subject: target-ppc: Disentangle find_pte() 32-bit and 64-bit hash MMU implementations currently share a find_pte function. This results in a whole bunch of ugly conditionals in the shared function, and not all that much actually shared code. This patch separates out the 32-bit and 64-bit versions, putting then in mmu-hash64.c and mmu-has32.c, and removes the conditionals from both versions. Signed-off-by: David Gibson Signed-off-by: Alexander Graf --- target-ppc/cpu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target-ppc/cpu.h') diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 625feb2664..cf8ba2e5e3 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -1135,6 +1135,8 @@ void ppc_hw_interrupt (CPUPPCState *env); void ppc_store_sdr1 (CPUPPCState *env, target_ulong value); int pp_check(int key, int pp, int nx); int check_prot(int prot, int rw, int access_type); +int pte_update_flags(mmu_ctx_t *ctx, target_ulong *pte1p, int ret, int rw); +hwaddr get_pteg_offset(CPUPPCState *env, hwaddr hash, int pte_size); #endif /* !defined(CONFIG_USER_ONLY) */ void ppc_store_msr (CPUPPCState *env, target_ulong value); -- cgit v1.2.1