From 8ae373235b316ff10c3b6f30ac1f2efed9bec011 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sun, 10 Aug 2014 18:36:30 +0200 Subject: arm: Add support for FPv4-SP floating point unit This floating point unit is available in Cortex-M4 processors and defined by ARMv7-M. This adds basic support for other VFP-D16 variants. --- cpukit/score/cpu/arm/rtems/score/arm.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'cpukit/score/cpu/arm/rtems/score/arm.h') diff --git a/cpukit/score/cpu/arm/rtems/score/arm.h b/cpukit/score/cpu/arm/rtems/score/arm.h index a105f17ad2..586a8cb2e9 100644 --- a/cpukit/score/cpu/arm/rtems/score/arm.h +++ b/cpukit/score/cpu/arm/rtems/score/arm.h @@ -50,10 +50,19 @@ extern "C" { #define ARM_MULTILIB_HAS_THREAD_ID_REGISTER #endif -#if defined(__ARM_NEON__) - #define ARM_MULTILIB_VFP_D32 -#elif !defined(__SOFTFP__) - #error "FPU support not implemented" +#if !defined(__SOFTFP__) + #if defined(__ARM_NEON__) + #define ARM_MULTILIB_VFP_D32 + #elif defined(__VFP_FP__) + #define ARM_MULTILIB_VFP_D16 + #else + #error "FPU support not implemented" + #endif +#endif + +#if defined(ARM_MULTILIB_VFP_D16) \ + || defined(ARM_MULTILIB_VFP_D32) + #define ARM_MULTILIB_VFP #endif /* -- cgit v1.2.3