diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2013-03-12 00:31:28 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-03-22 15:28:50 +0100 |
commit | aea390e4be652d5b5457771d25eded0dba14fe37 (patch) | |
tree | 767cfe9f1ef2913c6b097d85891974ec51b94ea9 /target-ppc/mmu-hash32.h | |
parent | f95d7cc7fecbc0e320e83c864ce2d99fee3d9236 (diff) |
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 <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/mmu-hash32.h')
-rw-r--r-- | target-ppc/mmu-hash32.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target-ppc/mmu-hash32.h b/target-ppc/mmu-hash32.h index 2344184584..f990edc3ef 100644 --- a/target-ppc/mmu-hash32.h +++ b/target-ppc/mmu-hash32.h @@ -97,6 +97,10 @@ static inline void ppc_hash32_store_hpte1(CPUPPCState *env, stl_phys(env->htab_base + pte_offset + HASH_PTE_SIZE_32/2, pte1); } +typedef struct { + uint32_t pte0, pte1; +} ppc_hash_pte32_t; + #endif /* CONFIG_USER_ONLY */ #endif /* __MMU_HASH32_H__ */ |