]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc07022d571a955a90d6943545b442532e6da536
tree0ae03326010ef35df2a5565d73ffd97f3cee9bb3
parentbb68a8a42b66a062888530e200f8f97aa7f68f6f
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