ARM64: Allow full VA range for mcode allocation.

This commit is contained in:
Mike Pall 2016-11-20 23:17:45 +01:00
parent 04b60707d7
commit 7a0c3a1127

View 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