]> git.proxmox.com Git - mirror_qemu.git/commit
target-ppc: Return page shift from PTEG search
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 5 Jul 2016 02:31:57 +0000 (12:31 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 5 Jul 2016 04:31:08 +0000 (14:31 +1000)
commit949868633f0454715af1781c0f377413b6ab000e
tree2d266d0c493ba7d6156f8dcb1fbc5ac942a19308
parent073de86aa934d46d596a2367e7501da5500e5b86
target-ppc: Return page shift from PTEG search

ppc_hash64_pteg_search() now decodes a PTEs page size encoding, which it
didn't previously do.  This means we're now double decoding the page size
because we check it int he fault path after ppc64_hash64_htab_lookup()
returns.

To avoid this duplication have ppc_hash64_pteg_search() and
ppc_hash64_htab_lookup() return the page size from the PTE and use that in
the callers instead of decoding again.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
target-ppc/mmu-hash64.c