ARM: Enable VFP and hard-float ABI support.

This commit is contained in:
Mike Pall 2012-08-09 13:13:39 +02:00
parent 4dc9e22def
commit 85a02f9ae8

View File

@ -152,10 +152,10 @@
#define LJ_ARCH_NAME "arm"
#define LJ_ARCH_BITS 32
#define LJ_ARCH_ENDIAN LUAJIT_LE
#ifndef LJ_ARCH_HASFPU
#if !defined(LJ_ARCH_HASFPU) && __SOFTFP__
#define LJ_ARCH_HASFPU 0
#endif
#ifndef LJ_ABI_SOFTFP
#if !defined(LJ_ABI_SOFTFP) && !__ARM_PCS_VFP
#define LJ_ABI_SOFTFP 1
#endif
#define LJ_ABI_EABI 1
@ -302,9 +302,6 @@
#if defined(__ARMEB__)
#error "No support for big-endian ARM"
#endif
#if defined(__ARM_PCS_VFP)
#error "No support for ARM hard-float ABI (yet)"
#endif
#if __ARM_ARCH_6M__ || __ARM_ARCH_7M__ || __ARM_ARCH_7EM__
#error "No support for Cortex-M CPUs"
#endif