tcg/mips: fix branch target change during code retranslation
TCG on MIPS was trying to avoid changing the branch offset, but didn't due to a stupid typo. Fix it. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
9a3abc21a6
commit
d43ffce140
@ -352,7 +352,7 @@ static inline void tcg_out_opc_imm(TCGContext *s, int opc, int rt, int rs, int i
|
|||||||
static inline void tcg_out_opc_br(TCGContext *s, int opc, int rt, int rs)
|
static inline void tcg_out_opc_br(TCGContext *s, int opc, int rt, int rs)
|
||||||
{
|
{
|
||||||
/* We need to keep the offset unchanged for retranslation */
|
/* We need to keep the offset unchanged for retranslation */
|
||||||
uint16_t offset = (uint16_t)(*(uint32_t *) &s->code_ptr);
|
uint16_t offset = (uint16_t)(*(uint32_t *) s->code_ptr);
|
||||||
|
|
||||||
tcg_out_opc_imm(s, opc, rt, rs, offset);
|
tcg_out_opc_imm(s, opc, rt, rs, offset);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user