]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/8xx: Remove SoftwareEmulation()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 8 Aug 2017 11:58:44 +0000 (13:58 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Aug 2017 13:32:04 +0000 (23:32 +1000)
commit60da364b2dcb1304978fde88332d0942a18ea748
tree8779ece748701e2786dc7ba6425e00fe44aa7885
parentcc59a747eccf19e890452b2663c34db1cc180c66
powerpc/8xx: Remove SoftwareEmulation()

Since commit ad4d158bad68f ("[POWERPC] Add support for FP emulation
for the e300c2 core"), program_check_exception() can be called for
math emulation. In that case, 'reason' is 0.

On the 8xx, there is a Software Emulation interrupt which is
called for all unimplemented and illegal instructions. This
interrupt calls SoftwareEmulation() which does almost the
same as program_check_exception() called with reason = 0.

The Software Emulation interrupt sets all reason bits to 0,
it is therefore possible to call program_check_exception()
directly from the interrupt handler.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/head_8xx.S
arch/powerpc/kernel/traps.c