]> git.proxmox.com Git - qemu.git/commit - target-ppc/mmu-hash32.c
mmu-hash32: Split out handling of direct store segments
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Mar 2013 00:31:24 +0000 (00:31 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 22 Mar 2013 14:28:49 +0000 (15:28 +0100)
commit4b9605a5b16f86d9e8eccbc0bd522904137c1200
tree9b857a088f1cc5cd85f4f3d4bd8fa436f6b73f23
parent65d61643d01fec2792d195130531cbb71c783e8e
mmu-hash32: Split out handling of direct store segments

At present a large chunk of ppc_hash32_translate() is taken up with an
ugly if selecting between direct store segments (hardly ever used) and
normal paged segments.  This patch clarifies the flow of code by
handling direct store segments immediately then returning, leaving the
straight line code to describe the normal MMU path.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/mmu-hash32.c