Allow mcode allocations outside of the jump range to the support code.

Thank you for your patience. #285
This commit is contained in:
Mike Pall
2025-11-06 00:42:02 +01:00
parent 3c7b158b79
commit 68354f4447
19 changed files with 479 additions and 230 deletions

View File

@@ -80,6 +80,9 @@ static void emit_tsml(ASMState *as, MIPSIns mi, Reg rt, Reg rs, uint32_t msb,
/* -- Emit loads/stores --------------------------------------------------- */
#define jglofs(as, k) \
(((uintptr_t)(k) - (uintptr_t)J2G(as->J) - 32768) & 0xffff)
/* Prefer rematerialization of BASE/L from global_State over spills. */
#define emit_canremat(ref) ((ref) <= REF_BASE)