From 25de24ab838be5801d5cc13b8a347922a3770fa5 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 12 Mar 2013 00:31:12 +0000 Subject: target-ppc: Disentangle hash mmu paths for cpu_ppc_handle_mmu_fault cpu_ppc_handle_mmu_fault() calls get_physical_address() (whose behaviour depends on MMU type) then, if that fails, issues an appropriate exception - which again has a number of dependencies on MMU type. This patch starts converting cpu_ppc_handle_mmu_fault() to have a single switch on MMU type, calling MMU specific fault handler functions which deal with both translation and exception delivery appropriately for the MMU type. We convert 32-bit and 64-bit hash MMUs to this new model, but the existing code is left in place for other MMU types for now. Signed-off-by: David Gibson Signed-off-by: Alexander Graf --- target-ppc/mmu-hash32.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target-ppc/mmu-hash32.h') diff --git a/target-ppc/mmu-hash32.h b/target-ppc/mmu-hash32.h index 1318562..8f1f2a9 100644 --- a/target-ppc/mmu-hash32.h +++ b/target-ppc/mmu-hash32.h @@ -6,6 +6,8 @@ int pte32_is_valid(target_ulong pte0); int ppc_hash32_get_physical_address(CPUPPCState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int access_type); +int ppc_hash32_handle_mmu_fault(CPUPPCState *env, target_ulong address, int rw, + int mmu_idx); #endif /* CONFIG_USER_ONLY */ -- cgit v1.1