ARM64: Enable unaligned accesses if indicated by the toolchain.

If you get a crash in jit_init() then you need to fix your toolchain.
This commit is contained in:
Mike Pall
2025-11-08 15:41:42 +01:00
parent 68354f4447
commit 578c41ceb7
3 changed files with 15 additions and 1 deletions

View File

@@ -304,6 +304,10 @@
#define LJ_PAGESIZE 16384
#define LJ_ARCH_NUMMODE LJ_NUMMODE_DUAL
#if __ARM_FEATURE_UNALIGNED
#define LJ_TARGET_UNALIGNED 1
#endif
#define LJ_ARCH_VERSION 80
#elif LUAJIT_TARGET == LUAJIT_ARCH_PPC