MIPS: traps: Never enable FPU when CONFIG_MIPS_FP_SUPPORT=n
authorPaul Burton <paul.burton@mips.com>
Wed, 7 Nov 2018 23:14:05 +0000 (23:14 +0000)
committerPaul Burton <paul.burton@mips.com>
Fri, 9 Nov 2018 18:23:16 +0000 (10:23 -0800)
commit5328f7422e4b195a36b0ed021ce8cc95bd8e0e59
tree1c69fb05a6fed4dfe2d3c072f98816fa6296d085
parentb2e628a8f9993b240597432e39e6fa4950638211
MIPS: traps: Never enable FPU when CONFIG_MIPS_FP_SUPPORT=n

When CONFIG_MIPS_FP_SUPPORT=n we don't support floating point, so we'll
never need to enable the FPU. Avoid doing so on a Co-Processor Unusable
exception (do_cpu), and remove the Floating Point Exception handler
(do_fpe) which should never be executed when the FPU is disabled.

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