ppc: Use a helper to filter writes to LPCR
commit4b3fc37788fe5a9c6ec0c43863c78604db40cbb3
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 27 Jun 2016 06:55:16 +0000 (27 08:55 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 30 Jun 2016 23:57:01 +0000 (1 09:57 +1000)
treef612f35914591efd60e648171aaa98a18194ec0c
parent88536935c00311781addc980b0be8fe74f9f5706
ppc: Use a helper to filter writes to LPCR

This handles filtering bits based on what is implemented by a
given architecture version. We also use it to copy to LPCR
some of the relevant 970 HID4 bits.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[clg: fixed checkpatch.pl errors ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/helper.h
target-ppc/mmu-hash64.c
target-ppc/translate_init.c