aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2012-08-09 13:13:39 +0200
committerMike Pall <mike>2012-08-09 13:13:39 +0200
commit85a02f9ae87eea34eac05679422bc558b5409fc7 (patch)
treedb4b71fc7a09bf4a2d4d02878dba4e4d789901aa /src
parent4dc9e22def294492d0aaab1064d2805c2f721c8d (diff)
downloadluajit-85a02f9ae87eea34eac05679422bc558b5409fc7.tar.gz
luajit-85a02f9ae87eea34eac05679422bc558b5409fc7.tar.bz2
luajit-85a02f9ae87eea34eac05679422bc558b5409fc7.zip
ARM: Enable VFP and hard-float ABI support.
Diffstat (limited to 'src')
-rw-r--r--src/lj_arch.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h
index c0c2006d..9ff3c2b6 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -152,10 +152,10 @@
152#define LJ_ARCH_NAME "arm" 152#define LJ_ARCH_NAME "arm"
153#define LJ_ARCH_BITS 32 153#define LJ_ARCH_BITS 32
154#define LJ_ARCH_ENDIAN LUAJIT_LE 154#define LJ_ARCH_ENDIAN LUAJIT_LE
155#ifndef LJ_ARCH_HASFPU 155#if !defined(LJ_ARCH_HASFPU) && __SOFTFP__
156#define LJ_ARCH_HASFPU 0 156#define LJ_ARCH_HASFPU 0
157#endif 157#endif
158#ifndef LJ_ABI_SOFTFP 158#if !defined(LJ_ABI_SOFTFP) && !__ARM_PCS_VFP
159#define LJ_ABI_SOFTFP 1 159#define LJ_ABI_SOFTFP 1
160#endif 160#endif
161#define LJ_ABI_EABI 1 161#define LJ_ABI_EABI 1
@@ -302,9 +302,6 @@
302#if defined(__ARMEB__) 302#if defined(__ARMEB__)
303#error "No support for big-endian ARM" 303#error "No support for big-endian ARM"
304#endif 304#endif
305#if defined(__ARM_PCS_VFP)
306#error "No support for ARM hard-float ABI (yet)"
307#endif
308#if __ARM_ARCH_6M__ || __ARM_ARCH_7M__ || __ARM_ARCH_7EM__ 305#if __ARM_ARCH_6M__ || __ARM_ARCH_7M__ || __ARM_ARCH_7EM__
309#error "No support for Cortex-M CPUs" 306#error "No support for Cortex-M CPUs"
310#endif 307#endif