riscv(jit): add mandatory constants
This commit is contained in:
parent
89e0d60ad0
commit
052337dea6
@ -403,13 +403,13 @@ enum {
|
||||
#if LJ_TARGET_MIPS
|
||||
LJ_K64_2P31, /* 2^31 */
|
||||
#endif
|
||||
#if LJ_TARGET_ARM64 || LJ_TARGET_MIPS64
|
||||
#if LJ_TARGET_ARM64 || LJ_TARGET_MIPS64 || LJ_TARGET_RISCV64
|
||||
LJ_K64_VM_EXIT_HANDLER,
|
||||
LJ_K64_VM_EXIT_INTERP,
|
||||
#endif
|
||||
LJ_K64__MAX,
|
||||
};
|
||||
#define LJ_K64__USED (LJ_TARGET_X86ORX64 || LJ_TARGET_ARM64 || LJ_TARGET_MIPS)
|
||||
#define LJ_K64__USED (LJ_TARGET_X86ORX64 || LJ_TARGET_ARM64 || LJ_TARGET_MIPS || LJ_TARGET_RISCV64)
|
||||
|
||||
enum {
|
||||
#if LJ_TARGET_X86ORX64 || LJ_TARGET_MIPS64
|
||||
|
||||
@ -349,7 +349,7 @@ void lj_trace_initstate(global_State *g)
|
||||
J->k32[LJ_K32_VM_EXIT_HANDLER] = (uintptr_t)(void *)lj_vm_exit_handler;
|
||||
J->k32[LJ_K32_VM_EXIT_INTERP] = (uintptr_t)(void *)lj_vm_exit_interp;
|
||||
#endif
|
||||
#if LJ_TARGET_ARM64 || LJ_TARGET_MIPS64
|
||||
#if LJ_TARGET_ARM64 || LJ_TARGET_MIPS64 || LJ_TARGET_RISCV64
|
||||
J->k64[LJ_K64_VM_EXIT_HANDLER].u64 = (uintptr_t)lj_ptr_sign((void *)lj_vm_exit_handler, 0);
|
||||
J->k64[LJ_K64_VM_EXIT_INTERP].u64 = (uintptr_t)lj_ptr_sign((void *)lj_vm_exit_interp, 0);
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user