ppc: Fix support for odd MSR combinations
commit36a24df84a4728b1cd7425af24c0d30cd65a51b5
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 9 Jul 2016 03:41:31 +0000 (9 13:41 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 18 Jul 2016 00:40:27 +0000 (18 10:40 +1000)
tree958079709a1af5633b4e5369843d3cca74531641
parent2df778967b5d27c361c8f1389525d6c7e2dc9d10
ppc: Fix support for odd MSR combinations

MacOS uses an architecturally illegal MSR combination that
seems nonetheless supported by 32-bit processors, which is
to have MSR[PR]=1 and one or more of MSR[DR/IR/EE]=0.

This adds support for it. To work properly we need to also
properly include support for PR=1,{I,D}R=0 to the MMU index
used by the qemu TLB.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/helper_regs.h