aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2016-11-20 23:17:45 +0100
committerMike Pall <mike>2016-11-20 23:17:45 +0100
commit7a0c3a1127229788fa4cfc436e1b3cbee36b7eb4 (patch)
tree74e6b6eae52f1dfb393ffe922195d9d036474784
parent04b60707d7d117da22b40736a353e2a10179108a (diff)
downloadluajit-7a0c3a1127229788fa4cfc436e1b3cbee36b7eb4.tar.gz
luajit-7a0c3a1127229788fa4cfc436e1b3cbee36b7eb4.tar.bz2
luajit-7a0c3a1127229788fa4cfc436e1b3cbee36b7eb4.zip
ARM64: Allow full VA range for mcode allocation.
-rw-r--r--src/lj_mcode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lj_mcode.c b/src/lj_mcode.c
index 3eaee054..de785a09 100644
--- a/src/lj_mcode.c
+++ b/src/lj_mcode.c
@@ -206,6 +206,9 @@ static void mcode_protect(jit_State *J, int prot)
206 206
207#if LJ_TARGET_X64 207#if LJ_TARGET_X64
208#define mcode_validptr(p) ((p) && (uintptr_t)(p) < (uintptr_t)1<<47) 208#define mcode_validptr(p) ((p) && (uintptr_t)(p) < (uintptr_t)1<<47)
209#elif LJ_TARGET_ARM64
210/* We have no clue about the valid VA range. It could be 39 - 52 bits. */
211#define mcode_validptr(p) (p)
209#else 212#else
210#define mcode_validptr(p) ((p) && (uintptr_t)(p) < 0xffff0000) 213#define mcode_validptr(p) ((p) && (uintptr_t)(p) < 0xffff0000)
211#endif 214#endif