[PATCH V4 04/11] arch/csky: Add FLOAT_ABI compiler options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Guo Ren <ren_guo@xxxxxxxxx>

C-SKY CPU is seperated into two ABIs:
 - abiv1: mcore based ISA with ELF_NUM:39 and do not support FPU & VDSP.
          (CPU: 610)
 - abiv2: C-SKY own ISA with ELF_NUM:252 and support FPU & VDSP.
          (CPU: 807, 810, 860)

BR2_GCC_TARGET_FLOAT_ABI will have a value for abiv1. Except the value
will always be "soft" because there's no FPU support in ck610, which is
the only core using abiv1.

Signed-off-by: Guo Ren <ren_guo@xxxxxxxxx>
Cc: Thomas Petazzoni <thomas.petazzoni@xxxxxxxxxxx>
---
 arch/Config.in.csky | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/Config.in.csky b/arch/Config.in.csky
index af9bbd5..a967d2f 100644
--- a/arch/Config.in.csky
+++ b/arch/Config.in.csky
@@ -30,6 +30,10 @@ config BR2_CSKY_VDSP
 	bool "Enable VDSP enhanced instructions Co-processor"
 	depends on BR2_CSKY_FPU
 
+config BR2_GCC_TARGET_FLOAT_ABI
+	default "soft"		if !BR2_CSKY_FPU
+	default "hard"		if BR2_CSKY_FPU
+
 config BR2_ARCH
 	default "csky"
 
-- 
2.7.4




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux