summaryrefslogtreecommitdiffstats
path: root/arch/riscv/Kconfig
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@sifive.com>2018-10-22 17:38:26 -0700
committerPalmer Dabbelt <palmer@sifive.com>2018-10-22 17:38:26 -0700
commit4e4101cfefd382176b05356c5ef112561ae10384 (patch)
treeb60173dc3824f7da801b33d5d1d172c4a6f9e41f /arch/riscv/Kconfig
parentaef53f97b505ff94190ce3a06dcd0ded6cf5c0ca (diff)
parent9411ec60c23d868124d9c1b1d491937aebe07afa (diff)
downloadlinux-4e4101cfefd382176b05356c5ef112561ae10384.tar.gz
linux-4e4101cfefd382176b05356c5ef112561ae10384.tar.bz2
linux-4e4101cfefd382176b05356c5ef112561ae10384.zip
riscv: Add support to no-FPU systems
This patchset adds an option, CONFIG_FPU, to enable/disable floating- point support within the kernel. The kernel's new behavior will be as follows: * with CONFIG_FPU=y All FPU codes are reserved. If no FPU is found during booting, a global flag will be set, and those functions will be bypassed with condition check to that flag. * with CONFIG_FPU=n No floating-point instructions in kernel and all related settings are excluded. Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/Kconfig')
-rw-r--r--arch/riscv/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 6c8329beb936..4198759f6798 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -210,6 +210,15 @@ config RISCV_BASE_PMU
endmenu
+config FPU
+ bool "FPU support"
+ default y
+ help
+ Say N here if you want to disable all floating-point related procedure
+ in the kernel.
+
+ If you don't know what to do here, say Y.
+
endmenu
menu "Kernel features"