kconfig: Make the CPU_HAS_FPU_DOUBLE_PRECISION option global.
This option now applies to the RISC-V architecture and is no longer a ARM only configuration. Signed-off-by: Corey Wharton <coreyw7@fb.com>
This commit is contained in:
parent
22c52846a5
commit
c8f7cd5462
10 changed files with 25 additions and 31 deletions
|
@ -40,7 +40,7 @@
|
|||
#define RV_REGSHIFT 2
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_FLOAT_64BIT
|
||||
#ifdef CONFIG_CPU_HAS_FPU_DOUBLE_PRECISION
|
||||
#define RV_OP_LOADFPREG fld
|
||||
#define RV_OP_STOREFPREG fsd
|
||||
#else
|
||||
|
|
|
@ -42,7 +42,7 @@ struct soc_esf {
|
|||
#endif
|
||||
|
||||
#if !defined(RV_FP_TYPE) && defined(CONFIG_FLOAT) && defined(CONFIG_FP_SHARING)
|
||||
#ifdef CONFIG_FLOAT_64BIT
|
||||
#ifdef CONFIG_CPU_HAS_FPU_DOUBLE_PRECISION
|
||||
#define RV_FP_TYPE u64_t
|
||||
#else
|
||||
#define RV_FP_TYPE u32_t
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <zephyr/types.h>
|
||||
|
||||
#if !defined(RV_FP_TYPE) && defined(CONFIG_FLOAT) && defined(CONFIG_FP_SHARING)
|
||||
#ifdef CONFIG_FLOAT_64BIT
|
||||
#ifdef CONFIG_CPU_HAS_FPU_DOUBLE_PRECISION
|
||||
#define RV_FP_TYPE u64_t
|
||||
#else
|
||||
#define RV_FP_TYPE u32_t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue