aboutsummaryrefslogtreecommitdiff
path: root/src/lj_arch.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_arch.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lj_arch.h b/src/lj_arch.h
index 40509607..fe558157 100644
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -215,9 +215,14 @@
215 215
216#elif LUAJIT_TARGET == LUAJIT_ARCH_ARM64 216#elif LUAJIT_TARGET == LUAJIT_ARCH_ARM64
217 217
218#define LJ_ARCH_NAME "arm64"
219#define LJ_ARCH_BITS 64 218#define LJ_ARCH_BITS 64
219#if defined(__AARCH64EB__)
220#define LJ_ARCH_NAME "arm64be"
221#define LJ_ARCH_ENDIAN LUAJIT_BE
222#else
223#define LJ_ARCH_NAME "arm64"
220#define LJ_ARCH_ENDIAN LUAJIT_LE 224#define LJ_ARCH_ENDIAN LUAJIT_LE
225#endif
221#define LJ_TARGET_ARM64 1 226#define LJ_TARGET_ARM64 1
222#define LJ_TARGET_EHRETREG 0 227#define LJ_TARGET_EHRETREG 0
223#define LJ_TARGET_JUMPRANGE 27 /* +-2^27 = +-128MB */ 228#define LJ_TARGET_JUMPRANGE 27 /* +-2^27 = +-128MB */
@@ -409,9 +414,6 @@
409#error "Only ARM EABI or iOS 3.0+ ABI is supported" 414#error "Only ARM EABI or iOS 3.0+ ABI is supported"
410#endif 415#endif
411#elif LJ_TARGET_ARM64 416#elif LJ_TARGET_ARM64
412#if defined(__AARCH64EB__)
413#error "No support for big-endian ARM64"
414#endif
415#if defined(_ILP32) 417#if defined(_ILP32)
416#error "No support for ILP32 model on ARM64" 418#error "No support for ILP32 model on ARM64"
417#endif 419#endif