From b1cf0addb1b8d51f54bb8fa59c6e31bb3c838c61 Mon Sep 17 00:00:00 2001 From: lif <> Date: Sun, 24 Dec 2023 17:57:16 -0800 Subject: [PATCH] fix genccall on big endian! we needed to load doubleword the gp --- mips/mips_emit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mips/mips_emit.h b/mips/mips_emit.h index 27fa705..106282a 100644 --- a/mips/mips_emit.h +++ b/mips/mips_emit.h @@ -1997,7 +1997,7 @@ u32 execute_store_cpsr_body(u32 _cpsr, u32 address) mips_emit_sw(reg_a2, reg_base, ReOff_SaveR2); \ } \ /* Load the gp pointer, used by C code */ \ - mips_emit_lw(mips_reg_gp, reg_base, ReOff_GP_Save); \ + mips_emit_ld(mips_reg_gp, reg_base, ReOff_GP_Save); \ } // Restores the registers from their slot