diff options
author | Richard Henderson <rth@twiddle.net> | 2013-08-14 19:51:59 -0700 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2014-04-16 12:13:00 -0400 |
commit | ae7ab46aa891c12efee621dcd9cc753aa65f4a94 (patch) | |
tree | fdbb1c4c0078495671b3018c271f447644b9a90c /tcg/aarch64 | |
parent | 6f4724672c9cda92de9d30d0f76f57d684e03a5d (diff) | |
download | qemu-ae7ab46aa891c12efee621dcd9cc753aa65f4a94.zip qemu-ae7ab46aa891c12efee621dcd9cc753aa65f4a94.tar.gz qemu-ae7ab46aa891c12efee621dcd9cc753aa65f4a94.tar.bz2 |
tcg-aarch64: Use tcg_out_call for qemu_ld/st
In some cases, a direct branch will be in range.
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/aarch64')
-rw-r--r-- | tcg/aarch64/tcg-target.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tcg/aarch64/tcg-target.c b/tcg/aarch64/tcg-target.c index 5186311..4729d11 100644 --- a/tcg/aarch64/tcg-target.c +++ b/tcg/aarch64/tcg-target.c @@ -1081,8 +1081,7 @@ static void tcg_out_qemu_ld_slow_path(TCGContext *s, TCGLabelQemuLdst *lb) tcg_out_movr(s, TARGET_LONG_BITS == 64, TCG_REG_X1, lb->addrlo_reg); tcg_out_movi(s, TCG_TYPE_I32, TCG_REG_X2, lb->mem_index); tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_X3, (intptr_t)lb->raddr); - tcg_out_movi(s, TCG_TYPE_I64, TCG_REG_TMP, (intptr_t)qemu_ld_helpers[size]); - tcg_out_callr(s, TCG_REG_TMP); + tcg_out_call(s, (intptr_t)qemu_ld_helpers[size]); if (opc & MO_SIGN) { tcg_out_sxt(s, TCG_TYPE_I64, size, lb->datalo_reg, TCG_REG_X0); } else { @@ -1103,8 +1102,7 @@ static void tcg_out_qemu_st_slow_path(TCGContext *s, TCGLabelQemuLdst *lb) tcg_out_movr(s, size == MO_64, TCG_REG_X2, lb->datalo_reg); tcg_out_movi(s, TCG_TYPE_I32, TCG_REG_X3, lb->mem_index); tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_X4, (intptr_t)lb->raddr); - tcg_out_movi(s, TCG_TYPE_I64, TCG_REG_TMP, (intptr_t)qemu_st_helpers[size]); - tcg_out_callr(s, TCG_REG_TMP); + tcg_out_call(s, (intptr_t)qemu_st_helpers[size]); tcg_out_goto(s, (intptr_t)lb->raddr); } |