path: root/arch
diff options
authorGravatar Guo Ren <ren_guo@c-sky.com>2019-05-31 14:39:01 +0800
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-05-31 22:59:57 +0200
commita9b722732d5fcb2fc3f16c09bf869112b3f64fbf (patch)
treea968edcf0db81cbeeb68ee8926ac33bd8b84d9d8 /arch
parentd2658caea07498ca14aa2bb2da84698e75a7c0b3 (diff)
arch/csky: specify BR2_GCC_TARGET_FLOAT_ABI
The C-SKY architecture uses two different ABIs, depending on the core being used: - "abiv1" is a mcore based ISA with ELF_NUM:39 and does not support FPU & VDSP. It is used only for the ck610 core. - "abiv2" is C-SKY's own ISA with ELF_NUM:252 and supports FPU & VDSP. It is used for the ck807, ck810, ck860 cores. Since "abiv1" does not support FPU, BR2_GCC_TARGET_FLOAT_ABI will always have the value "soft" for the ck610 core. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> [Thomas: rework commit log] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'arch')
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/Config.in.csky b/arch/Config.in.csky
index 1aede81282..ebde7fe476 100644
--- a/arch/Config.in.csky
+++ b/arch/Config.in.csky
@@ -27,6 +27,10 @@ config BR2_CSKY_VDSP
bool "Enable VDSP enhanced instructions Co-processor"
depends on BR2_CSKY_FPU
+ default "soft" if !BR2_CSKY_FPU
+ default "hard" if BR2_CSKY_FPU
config BR2_ARCH
default "csky"