]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Add support to no-FPU systems
authorPalmer Dabbelt <palmer@sifive.com>
Tue, 23 Oct 2018 00:38:26 +0000 (17:38 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 23 Oct 2018 00:38:26 +0000 (17:38 -0700)
commitc7aebaca09b66d6f3a48d59c0fad51c21364beb1
treeb60173dc3824f7da801b33d5d1d172c4a6f9e41f
parentd26ac44224182dc8c90d068d3fefb5397dbeed54
parentfa084f983b23ce8c818217d1e52d9744ae5405aa
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>
arch/riscv/Kconfig
arch/riscv/Makefile
arch/riscv/kernel/cpufeature.c