fix genccall on big endian! we needed to load doubleword the gp

This commit is contained in:
lif 2023-12-24 17:57:16 -08:00
parent 2e9fb813a9
commit b1cf0addb1
1 changed files with 1 additions and 1 deletions

View File

@ -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