MIPS: Allow FP support to be disabled
authorPaul Burton <paul.burton@mips.com>
Wed, 7 Nov 2018 23:14:11 +0000 (23:14 +0000)
committerPaul Burton <paul.burton@mips.com>
Fri, 9 Nov 2018 18:23:19 +0000 (10:23 -0800)
commit183b40f992c8f98082c4d72043ecdeba0e6a4367
treea22b758fffbbae318784855fa5a1497e3388a0d9
parent2725f3778fddb70526318824de63476aff816ab8
MIPS: Allow FP support to be disabled

Allow the user to configure the kernel to omit support for floating
point, by setting CONFIG_MIPS_FP_SUPPORT=n. In an attempt to avoid
problems for users who don't understand the impact of this, only expose
the option when CONFIG_EXPERT=y.

When CONFIG_MIPS_FP_SUPPORT=n all support for FPU hardware, FPU
emulation & FP context will be removed from the kernel. If a userland
program attempts to execute a floating point instruction it will receive
a SIGILL.

Setting CONFIG_MIPS_FP_SUPPORT=n shaves around 112KB from a
64r6el_defconfig build using GCC 8.1.0.

This also helps prepare us for supporting the nanoMIPS ISA, for which
floating point support has not been finalized.

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