]> git.proxmox.com Git - mirror_qemu.git/commit - target-ppc/mmu-hash32.c
mmu-hash*: Separate PTEG searching from permissions checking
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Mar 2013 00:31:28 +0000 (00:31 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 22 Mar 2013 14:28:50 +0000 (15:28 +0100)
commitaea390e4be652d5b5457771d25eded0dba14fe37
tree767cfe9f1ef2913c6b097d85891974ec51b94ea9
parentf95d7cc7fecbc0e320e83c864ce2d99fee3d9236
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>
target-ppc/mmu-hash32.c
target-ppc/mmu-hash32.h
target-ppc/mmu-hash64.c
target-ppc/mmu-hash64.h