]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: clear MSACSR cause bits when handling MSA FP exception
authorPaul Burton <paul.burton@imgtec.com>
Fri, 30 Jan 2015 12:09:34 +0000 (12:09 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 27 Mar 2015 18:42:45 +0000 (19:42 +0100)
commit484fd1ed1c1c5410b6fed428141c8454e6b1a696
tree8695bacab15ffcce06acc58f724472ea5e7a2252
parente6fe5292f10964e0adb12bc8652b8f633d70efec
MIPS: clear MSACSR cause bits when handling MSA FP exception

Much like for traditional scalar FP exceptions, the cause bits in the
MSACSR register need to be cleared following an MSA FP exception.
Without doing so the exception will simply be raised again whenever
the kernel restores MSACSR from a tasks saved context, leading to
undesirable spurious exceptions. Clear the cause bits from the
handle_msa_fpe function, mirroring the way handle_fpe clears the
cause bits in FCSR.

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