xiaoxiang781216 commented on a change in pull request #5662:
URL: https://github.com/apache/incubator-nuttx/pull/5662#discussion_r818855335



##########
File path: arch/arm/Kconfig
##########
@@ -887,20 +886,38 @@ config ARM_HAVE_WFE_SEV
        ---help---
                Use WFE and SEV instructions for spinlock to reduce power 
consumption
 
-config ARM_HAVE_FPU_D32
+config ARM_HAVE_DPFPU32
        bool
-       select ARCH_HAVE_FPU
        default n
+       select ARCH_HAVE_DPFPU

Review comment:
       move to line 892

##########
File path: arch/arm/Kconfig
##########
@@ -82,7 +82,7 @@ config ARCH_CHIP_IMX6
        select ARCH_CORTEXA9
        select ARM_THUMB
        select ARMV7A_HAVE_L2CC_PL310
-       select ARCH_HAVE_FPU
+       select ARM_HAVE_NEON

Review comment:
       why change

##########
File path: arch/arm/src/armv7-a/Toolchain.defs
##########
@@ -56,21 +56,48 @@ endif
 #
 
 ifeq ($(CONFIG_ARM_THUMB),y)
-ARCHCPUFLAGS += -mthumb
-endif
-
-ifeq ($(CONFIG_ARCH_FPU),y)
-ARCHCPUFLAGS += -mfloat-abi=hard
+  ARCHCPUFLAGS += -mthumb
 endif
 
 ifeq ($(CONFIG_ARCH_CORTEXA5),y)
-ARCHCPUFLAGS += -mcpu=cortex-a5
+  ARCHCPUFLAGS += -mcpu=cortex-a5
 else ifeq ($(CONFIG_ARCH_CORTEXA7),y)
-ARCHCPUFLAGS += -mcpu=cortex-a7
+  ARCHCPUFLAGS += -mcpu=cortex-a7
 else ifeq ($(CONFIG_ARCH_CORTEXA8),y)
-ARCHCPUFLAGS += -mcpu=cortex-a8
+  ARCHCPUFLAGS += -mcpu=cortex-a8
 else ifeq ($(CONFIG_ARCH_CORTEXA9),y)
-ARCHCPUFLAGS += -mcpu=cortex-a9
+  ARCHCPUFLAGS += -mcpu=cortex-a9
+endif
+
+ifneq ($(CONFIG_ARM_DPFPU32),y)
+  ARCHFPUD32FLAGS = -d16

Review comment:
       ARCHFPUD32FLAGS->ARCHFPUD16

##########
File path: arch/arm/Kconfig
##########
@@ -249,7 +249,6 @@ config ARCH_CHIP_S32K1XX
 config ARCH_CHIP_SAMA5
        bool "Atmel SAMA5"
        select ARCH_CORTEXA5
-       select ARCH_HAVE_FPU

Review comment:
       why remove ARCH_HAVE_FPU

##########
File path: arch/arm/Kconfig
##########
@@ -887,20 +886,38 @@ config ARM_HAVE_WFE_SEV
        ---help---
                Use WFE and SEV instructions for spinlock to reduce power 
consumption
 
-config ARM_HAVE_FPU_D32
+config ARM_HAVE_DPFPU32
        bool
-       select ARCH_HAVE_FPU
        default n
+       select ARCH_HAVE_DPFPU
        ---help---
-               FPU implemented in the VFPv3-D32 format that supports
+               FPU implemented in the VFPv[3|4]-D32 format that supports
                32 double-precision floating-point registers.
 
 config ARM_HAVE_NEON
        bool
        default n
+       select ARM_HAVE_DPFPU32
        ---help---
                Decide whether support NEON instruction
 
+config ARM_FPU_ABI_SOFT
+       bool "Soft Float ABI"
+       default n
+       depends on ARCH_HAVE_FPU
+       ---help---
+               Pass float value via integer register (-mfloat-abi=softfp) 
+
+config ARM_DPFPU32
+       bool "FPU with 32 double-precision register"
+       default y
+       depends on ARCH_DPFPU && ARM_HAVE_DPFPU32
+
+config ARM_NEON
+       bool "Advanced SIMD (NEON) Extension"
+       default y
+       depends on ARM_HAVE_NEON && ARM_DPFPU32

Review comment:
       remove ARM_HAVE_NEON && 

##########
File path: arch/arm/Kconfig
##########
@@ -13,7 +13,7 @@ choice
 config ARCH_CHIP_A1X
        bool "Allwinner A1X"
        select ARCH_CORTEXA8
-       select ARCH_HAVE_FPU
+       select ARM_HAVE_NEON

Review comment:
       why change

##########
File path: arch/arm/Kconfig
##########
@@ -887,20 +886,38 @@ config ARM_HAVE_WFE_SEV
        ---help---
                Use WFE and SEV instructions for spinlock to reduce power 
consumption
 
-config ARM_HAVE_FPU_D32
+config ARM_HAVE_DPFPU32
        bool
-       select ARCH_HAVE_FPU
        default n
+       select ARCH_HAVE_DPFPU
        ---help---
-               FPU implemented in the VFPv3-D32 format that supports
+               FPU implemented in the VFPv[3|4]-D32 format that supports
                32 double-precision floating-point registers.
 
 config ARM_HAVE_NEON
        bool
        default n
+       select ARM_HAVE_DPFPU32
        ---help---
                Decide whether support NEON instruction
 
+config ARM_FPU_ABI_SOFT
+       bool "Soft Float ABI"
+       default n
+       depends on ARCH_HAVE_FPU
+       ---help---
+               Pass float value via integer register (-mfloat-abi=softfp) 
+
+config ARM_DPFPU32
+       bool "FPU with 32 double-precision register"
+       default y
+       depends on ARCH_DPFPU && ARM_HAVE_DPFPU32

Review comment:
       remove ARCH_DPFPU &&

##########
File path: arch/arm/src/armv7-a/Toolchain.defs
##########
@@ -56,21 +56,48 @@ endif
 #
 
 ifeq ($(CONFIG_ARM_THUMB),y)
-ARCHCPUFLAGS += -mthumb
-endif
-
-ifeq ($(CONFIG_ARCH_FPU),y)
-ARCHCPUFLAGS += -mfloat-abi=hard
+  ARCHCPUFLAGS += -mthumb
 endif
 
 ifeq ($(CONFIG_ARCH_CORTEXA5),y)
-ARCHCPUFLAGS += -mcpu=cortex-a5
+  ARCHCPUFLAGS += -mcpu=cortex-a5
 else ifeq ($(CONFIG_ARCH_CORTEXA7),y)
-ARCHCPUFLAGS += -mcpu=cortex-a7
+  ARCHCPUFLAGS += -mcpu=cortex-a7
 else ifeq ($(CONFIG_ARCH_CORTEXA8),y)
-ARCHCPUFLAGS += -mcpu=cortex-a8
+  ARCHCPUFLAGS += -mcpu=cortex-a8
 else ifeq ($(CONFIG_ARCH_CORTEXA9),y)
-ARCHCPUFLAGS += -mcpu=cortex-a9
+  ARCHCPUFLAGS += -mcpu=cortex-a9
+endif
+
+ifneq ($(CONFIG_ARM_DPFPU32),y)
+  ARCHFPUD32FLAGS = -d16
+endif
+
+# Cortex-A5  | -mfpu=vfpv3-fp16 | -mfpu=vfpv3-d16-fp16 | -mfpu=neon-fp16
+# Cortex-A7  | -mfpu=vfpv4      | -mfpu=vfpv4-d16      | -mfpu=neon-vfpv4
+# Cortex-A8  | -mfpu=vfpv3      |                      | -mfpu=neon (alias for 
neon-vfpv3)
+# Cortex-A9  | -mfpu=vfpv3-fp16 | -mfpu=vfpv3-d16-fp16 | -mfpu=neon-fp16
+# Cortex-A15 | -mfpu=vfpv4      |                      | -mfpu=neon-vfpv4
+
+ifeq ($(CONFIG_ARCH_FPU),y)
+  ifeq ($(CONFIG_ARM_FPU_ABI_SOFT),y)
+    ARCHCPUFLAGS += -mfloat-abi=softfp
+  else
+    ARCHCPUFLAGS += -mfloat-abi=hard
+  endif
+
+  ifeq ($(CONFIG_ARM_NEON),y)
+    ARCHNEON = neon-
+  endif
+  ifeq ($(CONFIG_ARCH_CORTEXA7),y)
+    ARCHFPUVERSION = vfpv4

Review comment:
       ARCHFPUVERSION->ARCHFPU




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to