From 90f24ec29d0731cdda4b1db14ec73a87d88c50bf Mon Sep 17 00:00:00 2001 From: chao an Date: Mon, 15 Jan 2024 20:48:09 +0800 Subject: [PATCH] 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 --- arch/Kconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 75969c7049..3173dcf3ab 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -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