[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 20/23] tcg/mips: Fix tcg_out_qemu_ld_slow_path
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PULL 20/23] tcg/mips: Fix tcg_out_qemu_ld_slow_path |
Date: |
Mon, 28 Jan 2019 07:59:04 -0800 |
Patch the branch after it has been emitted rather
than before it exists.
Signed-off-by: Richard Henderson <address@hidden>
---
tcg/mips/tcg-target.inc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c
index be0bc92e8e..c5d7067f89 100644
--- a/tcg/mips/tcg-target.inc.c
+++ b/tcg/mips/tcg-target.inc.c
@@ -1343,8 +1343,9 @@ static void tcg_out_qemu_ld_slow_path(TCGContext *s,
TCGLabelQemuLdst *l)
}
}
- reloc_pc16(s->code_ptr, l->raddr);
tcg_out_opc_br(s, OPC_BEQ, TCG_REG_ZERO, TCG_REG_ZERO);
+ reloc_pc16(s->code_ptr - 1, l->raddr);
+
/* delay slot */
if (TCG_TARGET_REG_BITS == 64 && l->type == TCG_TYPE_I32) {
/* we always sign-extend 32-bit loads */
--
2.17.2
- [Qemu-devel] [PULL 10/23] tcg/aarch64: Implement vector minmax arithmetic, (continued)
- [Qemu-devel] [PULL 10/23] tcg/aarch64: Implement vector minmax arithmetic, Richard Henderson, 2019/01/28
- [Qemu-devel] [PULL 22/23] tcg/tci: enable dynamic TLB sizing, Richard Henderson, 2019/01/28
- [Qemu-devel] [PULL 11/23] cputlb: do not evict empty entries to the vtlb, Richard Henderson, 2019/01/28
- [Qemu-devel] [PULL 15/23] tcg/ppc: enable dynamic TLB sizing, Richard Henderson, 2019/01/28
- [Qemu-devel] [PULL 17/23] tcg/s390: enable dynamic TLB sizing, Richard Henderson, 2019/01/28
- [Qemu-devel] [PULL 16/23] tcg/sparc: enable dynamic TLB sizing, Richard Henderson, 2019/01/28
- [Qemu-devel] [PULL 14/23] tcg/aarch64: enable dynamic TLB sizing, Richard Henderson, 2019/01/28
- [Qemu-devel] [PULL 13/23] tcg/i386: enable dynamic TLB sizing, Richard Henderson, 2019/01/28
- [Qemu-devel] [PULL 12/23] tcg: introduce dynamic TLB sizing, Richard Henderson, 2019/01/28
- [Qemu-devel] [PULL 21/23] tcg/mips: enable dynamic TLB sizing, Richard Henderson, 2019/01/28
- [Qemu-devel] [PULL 20/23] tcg/mips: Fix tcg_out_qemu_ld_slow_path,
Richard Henderson <=
- [Qemu-devel] [PULL 19/23] tcg/arm: enable dynamic TLB sizing, Richard Henderson, 2019/01/28
- [Qemu-devel] [PULL 18/23] tcg/riscv: enable dynamic TLB sizing, Richard Henderson, 2019/01/28
- [Qemu-devel] [PULL 23/23] cputlb: Remove static tlb sizing, Richard Henderson, 2019/01/28
- Re: [Qemu-devel] [PULL 00/23] tcg queued patches, Peter Maydell, 2019/01/28
- Re: [Qemu-devel] [PULL 00/23] tcg queued patches, no-reply, 2019/01/31