From: Richard Henderson Date: Fri, 30 Nov 2018 19:42:17 +0000 (-0800) Subject: tcg/mips: Remove retranslation code X-Git-Tag: v4.0.0-rc0~205^2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c1b079279fadaee10dc39ca9a58c4c91c7a1854;p=thirdparty%2Fqemu.git tcg/mips: Remove retranslation code There is no longer a need for preserving branch offset operands, as we no longer re-translate. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c index cff525373b3..e21cb1ae286 100644 --- a/tcg/mips/tcg-target.inc.c +++ b/tcg/mips/tcg-target.inc.c @@ -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); } /*