mmu-hash*: Cleanup segment-level NX check
commitbb218042c8b4e4bbcf2ab3c8d961d78876178831
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Mar 2013 00:31:26 +0000 (12 00:31 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 22 Mar 2013 14:28:49 +0000 (22 15:28 +0100)
tree6b8af7b268ae707e843a36ee6564f2a35f69bea9
parent723ed73ada1ed66a67722f3051059f634d60ebf7
mmu-hash*: Cleanup segment-level NX check

On the ppc hash mmus, no-execute can be set at the segment level (on more
recent 64-bit hash mmus it can also be set at the page level).  This patch
separates out this check to make it clearer what is going on, and avoiding
excessive indentation of the remaining translation code.

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