mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
ARM: Enable VFP and hard-float ABI support.
This commit is contained in:
parent
4dc9e22def
commit
85a02f9ae8
@ -152,10 +152,10 @@
|
|||||||
#define LJ_ARCH_NAME "arm"
|
#define LJ_ARCH_NAME "arm"
|
||||||
#define LJ_ARCH_BITS 32
|
#define LJ_ARCH_BITS 32
|
||||||
#define LJ_ARCH_ENDIAN LUAJIT_LE
|
#define LJ_ARCH_ENDIAN LUAJIT_LE
|
||||||
#ifndef LJ_ARCH_HASFPU
|
#if !defined(LJ_ARCH_HASFPU) && __SOFTFP__
|
||||||
#define LJ_ARCH_HASFPU 0
|
#define LJ_ARCH_HASFPU 0
|
||||||
#endif
|
#endif
|
||||||
#ifndef LJ_ABI_SOFTFP
|
#if !defined(LJ_ABI_SOFTFP) && !__ARM_PCS_VFP
|
||||||
#define LJ_ABI_SOFTFP 1
|
#define LJ_ABI_SOFTFP 1
|
||||||
#endif
|
#endif
|
||||||
#define LJ_ABI_EABI 1
|
#define LJ_ABI_EABI 1
|
||||||
@ -302,9 +302,6 @@
|
|||||||
#if defined(__ARMEB__)
|
#if defined(__ARMEB__)
|
||||||
#error "No support for big-endian ARM"
|
#error "No support for big-endian ARM"
|
||||||
#endif
|
#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__
|
#if __ARM_ARCH_6M__ || __ARM_ARCH_7M__ || __ARM_ARCH_7EM__
|
||||||
#error "No support for Cortex-M CPUs"
|
#error "No support for Cortex-M CPUs"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user