aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg.h
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2018-04-30 01:58:40 +0200
committerRichard Henderson <richard.henderson@linaro.org>2018-05-01 11:56:55 -0700
commit6001f7729e12dd1d810291e4cbf83cee8e07441d (patch)
tree8462a62c8d969718d68b1b55fea260cdcd1e04bf /tcg/tcg.h
parent5bfa803448638a45542441fd6b7cc1241403ea72 (diff)
downloadqemu-6001f7729e12dd1d810291e4cbf83cee8e07441d.zip
qemu-6001f7729e12dd1d810291e4cbf83cee8e07441d.tar.gz
qemu-6001f7729e12dd1d810291e4cbf83cee8e07441d.tar.bz2
tcg: workaround branch instruction overflow in tcg_out_qemu_ld/st
ppc64 uses a BC instruction to call the tcg_out_qemu_ld/st slow path. BC instruction uses a relative address encoded on 14 bits. The slow path functions are added at the end of the generated instructions buffer, in the reverse order of the callers. So more we have slow path functions more the distance between the caller (BC) and the function increases. This patch changes the behavior to generate the functions in the same order of the callers. Cc: qemu-stable@nongnu.org Fixes: 15fa08f845 ("tcg: Dynamically allocate TCGOps") Signed-off-by: Laurent Vivier <lvivier@redhat.com> Message-Id: <20180429235840.16659-1-lvivier@redhat.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r--tcg/tcg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/tcg.h b/tcg/tcg.h
index eb0d4f6..75fbad1 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -699,7 +699,7 @@ struct TCGContext {
/* These structures are private to tcg-target.inc.c. */
#ifdef TCG_TARGET_NEED_LDST_LABELS
- struct TCGLabelQemuLdst *ldst_labels;
+ QSIMPLEQ_HEAD(ldst_labels, TCGLabelQemuLdst) ldst_labels;
#endif
#ifdef TCG_TARGET_NEED_POOL_LABELS
struct TCGLabelPoolData *pool_labels;