MIPS: Dumb MSA FP exception handler
authorPaul Burton <paul.burton@imgtec.com>
Mon, 27 Jan 2014 15:23:12 +0000 (15:23 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Mar 2014 22:09:10 +0000 (23:09 +0100)
commit2bcb3fbc3fc593d2ec1efbdeb3e71b9475afe320
tree4044ed9f700fea1f26602cbe5604ba865f354c41
parent1db1af84d6df99a8e5d6ddea8c7b5c1327c9a620
MIPS: Dumb MSA FP exception handler

This patch adds a simple handler for MSA FP exceptions which delivers a
SIGFPE to the running task. In the future it should probably be extended
to re-execute the instruction with the MSACSR.NX bit set in order to
generate results for any elements which did not cause an exception
before delivering the SIGFPE signal.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6432/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/genex.S
arch/mips/kernel/traps.c