aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/mmu-hash64.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2013-03-12 00:31:28 +0000
committerAlexander Graf <agraf@suse.de>2013-03-22 15:28:50 +0100
commitaea390e4be652d5b5457771d25eded0dba14fe37 (patch)
tree767cfe9f1ef2913c6b097d85891974ec51b94ea9 /target-ppc/mmu-hash64.h
parentf95d7cc7fecbc0e320e83c864ce2d99fee3d9236 (diff)
downloadqemu-aea390e4be652d5b5457771d25eded0dba14fe37.zip
qemu-aea390e4be652d5b5457771d25eded0dba14fe37.tar.gz
qemu-aea390e4be652d5b5457771d25eded0dba14fe37.tar.bz2
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-hash64.h')
-rw-r--r--target-ppc/mmu-hash64.h4
1 files changed, 4 insertions, 0 deletions
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__) */