ppc: Create cpu_ppc_set_papr() helper
commit26a7f1291bb5581e51c413d744207d0a5910ff4c
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 21 Mar 2016 12:52:34 +0000 (21 13:52 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 24 Mar 2016 00:17:34 +0000 (24 11:17 +1100)
treed1fcc2a2f3462f6ea266a0efceede3bdefde226d
parentf401dd32cb8e9ef68bc4f0d600479f670c2bf39a
ppc: Create cpu_ppc_set_papr() helper

And move the code adjusting the MSR mask and calling kvmppc_set_papr()
to it. This allows us to add a few more things such as disabling setting
of MSR:HV and appropriate LPCR bits which will be used when fixing
the exception model.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
[clg: removed LPCR setting ]
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
target-ppc/cpu.h
target-ppc/translate_init.c