diff options
author | Mike Pall <mike> | 2017-03-30 11:17:15 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2017-03-30 11:30:01 +0200 |
commit | 3143b218946395834f0bfef741061ac6ef3f5b56 (patch) | |
tree | 07721c6a94616eda13799a6027b00f3e3fc999a4 /src/lj_arch.h | |
parent | 78f5f1cef19502289604299e4e6d00e14411f764 (diff) | |
download | luajit-3143b218946395834f0bfef741061ac6ef3f5b56.tar.gz luajit-3143b218946395834f0bfef741061ac6ef3f5b56.tar.bz2 luajit-3143b218946395834f0bfef741061ac6ef3f5b56.zip |
ARM64: Add big-endian support.
Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com.
Sponsored by Cisco Systems, Inc.
Diffstat (limited to 'src/lj_arch.h')
-rw-r--r-- | src/lj_arch.h | 10 |
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 |