fix genccall on big endian! we needed to load doubleword the gp
This commit is contained in:
parent
2e9fb813a9
commit
b1cf0addb1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue