MIPS: unaligned: Remove FP & MSA code when unsupported
authorPaul Burton <paul.burton@mips.com>
Wed, 7 Nov 2018 23:14:07 +0000 (23:14 +0000)
committerPaul Burton <paul.burton@mips.com>
Fri, 9 Nov 2018 18:23:17 +0000 (10:23 -0800)
commit85164fd8b053200cfc811d7a77afeb507968226c
tree0ae03326010ef35df2a5565d73ffd97f3cee9bb3
parent6a1cc218b9ccf8892fc254a0c2756bfda8bb715f
MIPS: unaligned: Remove FP & MSA code when unsupported

When CONFIG_MIPS_FP_SUPPORT=n we don't support floating point, so remove
support for floating point instructions from emulate_load_store_insn() &
emulate_load_store_microMIPS(). This code should not be needed & relies
upon access to FPU state in struct task_struct which will later be
removed.

Similarly & for the same reasons, when CONFIG_CPU_HAS_MSA=n remove
support for MSA instructions. Since MSA support depends upon FP support
this is implied when CONFIG_MIPS_FP_SUPPORT=n.

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