ppc: Fix hreg_store_msr() so that non-HV mode cannot alter MSR:HV
commit1c953ba57ada0a8694abb5db4bc618dde35a4618
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 3 Jun 2016 12:11:18 +0000 (3 14:11 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 7 Jun 2016 00:17:45 +0000 (7 10:17 +1000)
tree533b3dc2aa7d2db59a205a989b907f34e303d53a
parent932ccbdd48cea5b86f895bdc7d6b409d24aa81cd
ppc: Fix hreg_store_msr() so that non-HV mode cannot alter MSR:HV

This helper is only used by the various instructions that can alter
MSR and not interrupts. Add a comment to that effect to the interrupt
code as well in case somebody wants to change this

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target-ppc/excp_helper.c
target-ppc/helper_regs.h