arch/risc-v: add ARCH_QPFPU for Quad-Precision Floating-Point

new options to enable toolchain support for quadruple precision
(128 bits or 16 bytes) floating point if both the toolchain and
the hardware support it.

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an 2024-01-15 20:48:09 +08:00 committed by Xiang Xiao
parent d2c4de6167
commit 90f24ec29d
1 changed files with 13 additions and 0 deletions

View File

@ -440,6 +440,11 @@ config ARCH_HAVE_DPFPU
default n
select ARCH_HAVE_FPU
config ARCH_HAVE_QPFPU
bool
default n
select ARCH_HAVE_DPFPU
config ARCH_HAVE_LAZYFPU
bool
default n
@ -577,6 +582,14 @@ config ARCH_DPFPU
Enable toolchain support for double precision (64-bit) floating
point if both the toolchain and the hardware support it.
config ARCH_QPFPU
bool "Quad-Precision FPU support"
default y
depends on ARCH_FPU && ARCH_HAVE_DPFPU && ARCH_HAVE_QPFPU
---help---
Enable toolchain support for quadruple precision (128 bits or 16 bytes) floating
point if both the toolchain and the hardware support it.
config ARCH_LAZYFPU
bool "Enable lazy FPU state save / restore"
default n