powerpc/8xx: Fix software emulation interrupt
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 5 Feb 2021 08:56:13 +0000 (08:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:38:05 +0000 (11:38 +0100)
commite87684f9270621d8101f709cd7b6857d472f5f5a
tree6d5f53db09e91f51a9bcbf3cf176713cb2737a34
parentc035dcae0bcc18b63db5be534d7bf676427469f4
powerpc/8xx: Fix software emulation interrupt

[ Upstream commit 903178d0ce6bb30ef80a3604ab9ee2b57869fbc9 ]

For unimplemented instructions or unimplemented SPRs, the 8xx triggers
a "Software Emulation Exception" (0x1000). That interrupt doesn't set
reason bits in SRR1 as the "Program Check Exception" does.

Go through emulation_assist_interrupt() to set REASON_ILLEGAL.

Fixes: fbbcc3bb139e ("powerpc/8xx: Remove SoftwareEmulation()")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/ad782af87a222efc79cfb06079b0fd23d4224eaf.1612515180.git.christophe.leroy@csgroup.eu
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/head_8xx.S