spapr/rtas: do not reset the MSR in stop-self command
commit3fe4f0fc8530e9411819f02accf2d17c128061b0
authorCédric Le Goater <clg@kaod.org>
Fri, 24 Nov 2017 07:05:50 +0000 (24 08:05 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 14 Dec 2017 22:49:24 +0000 (15 09:49 +1100)
treebd659669a499f829a50676b9f82d01e8f27c81d6
parentd6322252b3210b663e303746f151abbae7d0b6db
spapr/rtas: do not reset the MSR in stop-self command

When a CPU is stopped with the 'stop-self' RTAS call, its state
'halted' is switched to 1 and, in this case, the MSR is not taken into
account anymore in the cpu_has_work() routine. Only the pending
hardware interrupts are checked with their LPCR:PECE* enablement bit.

The CPU is now also protected from the decrementer interrupt by the
LPCR:PECE* bits which are disabled in the 'stop-self' RTAS
call. Reseting the MSR is pointless.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_rtas.c