mmu-hash32: Cleanup BAT lookup
commit145e52f31826045d8cccf5b840dc77d21a696651
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Mar 2013 00:31:36 +0000 (12 00:31 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 22 Mar 2013 14:28:51 +0000 (22 15:28 +0100)
tree7a106b444bc68d169dace464ee0796a7917c890d
parent6fc76aa9adc1c8896a97059f12a1e5e6c1820c64
mmu-hash32: Cleanup BAT lookup

This patch makes a general cleanup of the ppc_hash32_get_bat() function,
renaming it to ppc_hash32_bat_lookup().  In particular, the new function
only looks for a matching BAT, with the permissions check from the old
function moved to the caller.

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