From 9d7c3f4a2935a70e7299a6862792bbfc48d62211 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 12 Mar 2013 00:31:07 +0000 Subject: target-ppc: Disentangle pte_check() Currently support for both 32-bit and 64-bit hash MMUs share an implementation of pte_check. But there are enough differences that this means the shared function has several very ugly conditionals on "is_64b". This patch cleans things up by separating out the 64-bit version (putting it into mmu-hash64.c) and the 32-bit hash version (putting it in mmu-hash32.c). Another copy remains in mmu_helper.c, which is used for the 6xx software loaded TLB paths. Signed-off-by: David Gibson Signed-off-by: Alexander Graf --- target-ppc/mmu-hash32.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 target-ppc/mmu-hash32.h (limited to 'target-ppc/mmu-hash32.h') diff --git a/target-ppc/mmu-hash32.h b/target-ppc/mmu-hash32.h new file mode 100644 index 0000000..2411085 --- /dev/null +++ b/target-ppc/mmu-hash32.h @@ -0,0 +1,12 @@ +#if !defined (__MMU_HASH32_H__) +#define __MMU_HASH32_H__ + +#ifndef CONFIG_USER_ONLY + +int pte32_is_valid(target_ulong pte0); +int pte_check_hash32(mmu_ctx_t *ctx, target_ulong pte0, + target_ulong pte1, int h, int rw, int type); + +#endif /* CONFIG_USER_ONLY */ + +#endif /* __MMU_HASH32_H__ */ -- cgit v1.1