From aea390e4be652d5b5457771d25eded0dba14fe37 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 12 Mar 2013 00:31:28 +0000 Subject: mmu-hash*: Separate PTEG searching from permissions checking find_pte{32,64{() do several things. First they search through a PTEG ooking for a PTE matching our virtual address. Then they do permissions checking and other processing on that PTE. This patch separates the search by VA out from the rest. The search is combined with the pte{32,64}_match() functions into new ppc_has{32,64}_pteg_search() functions. Signed-off-by: David Gibson Signed-off-by: Alexander Graf --- target-ppc/mmu-hash64.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'target-ppc/mmu-hash64.h') diff --git a/target-ppc/mmu-hash64.h b/target-ppc/mmu-hash64.h index 84576c0..37ed7ca 100644 --- a/target-ppc/mmu-hash64.h +++ b/target-ppc/mmu-hash64.h @@ -113,6 +113,10 @@ static inline void ppc_hash64_store_hpte1(CPUPPCState *env, } } +typedef struct { + uint64_t pte0, pte1; +} ppc_hash_pte64_t; + #endif /* CONFIG_USER_ONLY */ #endif /* !defined (__MMU_HASH64_H__) */ -- cgit v1.1