mmu-hash*: Combine ppc_hash{32, 64}_get_physical_address and get_segment{32, 64}()
commit65d61643d01fec2792d195130531cbb71c783e8e
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Mar 2013 00:31:23 +0000 (12 00:31 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 22 Mar 2013 14:28:49 +0000 (22 15:28 +0100)
treef44f7d046315b43f3d125aec8cf2b5f58cc0419a
parentf078cd46de9efb5f102a4b32aaf1c8b96a90bfbd
mmu-hash*: Combine ppc_hash{32, 64}_get_physical_address and get_segment{32, 64}()

After previous work, ppc_hash{32,64}_get_physical_address() are almost
trivial wrappers around get_segment{32,64}() which does nearly all the work of
translating an address according to the hash mmu model.  Therefore combine the
two functions into one, under the better name of
ppc_hash{32,64}_translate().

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-hash64.c