]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM64: Allow full VA range for mcode allocation.
authorMike Pall <mike>
Sun, 20 Nov 2016 22:17:45 +0000 (23:17 +0100)
committerMike Pall <mike>
Sun, 20 Nov 2016 22:17:45 +0000 (23:17 +0100)
src/lj_mcode.c

index 3eaee0546e7182b4eba5066489aa2c258843546a..de785a093de282bbc7a2c8125e87166ea0f7414c 100644 (file)
@@ -206,6 +206,9 @@ static void mcode_protect(jit_State *J, int prot)
 
 #if LJ_TARGET_X64
 #define mcode_validptr(p)      ((p) && (uintptr_t)(p) < (uintptr_t)1<<47)
+#elif LJ_TARGET_ARM64
+/* We have no clue about the valid VA range. It could be 39 - 52 bits. */
+#define mcode_validptr(p)      (p)
 #else
 #define mcode_validptr(p)      ((p) && (uintptr_t)(p) < 0xffff0000)
 #endif