mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 19:10:57 +00:00
tcg/mips: Remove retranslation code
There is no longer a need for preserving branch offset operands, as we no longer re-translate. Backports commit 8c1b079279fadaee10dc39ca9a58c4c91c7a1854 from qemu
This commit is contained in:
parent
ad9aec6f35
commit
294573899f
|
@ -483,12 +483,7 @@ static inline void tcg_out_opc_bf64(TCGContext *s, MIPSInsn opc, MIPSInsn opm,
|
|||
static inline void tcg_out_opc_br(TCGContext *s, MIPSInsn opc,
|
||||
TCGReg rt, TCGReg rs)
|
||||
{
|
||||
/* We pay attention here to not modify the branch target by reading
|
||||
the existing value and using it again. This ensure that caches and
|
||||
memory are kept coherent during retranslation. */
|
||||
uint16_t offset = (uint16_t)*s->code_ptr;
|
||||
|
||||
tcg_out_opc_imm(s, opc, rt, rs, offset);
|
||||
tcg_out_opc_imm(s, opc, rt, rs, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue