mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
ARM64: Allow full VA range for mcode allocation.
This commit is contained in:
parent
04b60707d7
commit
7a0c3a1127
@ -206,6 +206,9 @@ static void mcode_protect(jit_State *J, int prot)
|
|||||||
|
|
||||||
#if LJ_TARGET_X64
|
#if LJ_TARGET_X64
|
||||||
#define mcode_validptr(p) ((p) && (uintptr_t)(p) < (uintptr_t)1<<47)
|
#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
|
#else
|
||||||
#define mcode_validptr(p) ((p) && (uintptr_t)(p) < 0xffff0000)
|
#define mcode_validptr(p) ((p) && (uintptr_t)(p) < 0xffff0000)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user