diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2018-11-30 11:42:17 -0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2018-12-17 06:04:43 +0300 |
commit | 8c1b079279fadaee10dc39ca9a58c4c91c7a1854 (patch) | |
tree | 84616e420225dd8be8af8229e7f58b1c9f58faff /tcg/mips | |
parent | 791645f0227c9d52ce5fe1ad6e1cda55a9bfe633 (diff) | |
download | qemu-8c1b079279fadaee10dc39ca9a58c4c91c7a1854.zip qemu-8c1b079279fadaee10dc39ca9a58c4c91c7a1854.tar.gz qemu-8c1b079279fadaee10dc39ca9a58c4c91c7a1854.tar.bz2 |
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 <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/mips')
-rw-r--r-- | tcg/mips/tcg-target.inc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c index cff5253..e21cb1a 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); } /* |