[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/27] tcg: Fix register move type in tcg_out_ld_helper_ret
|
From: |
Richard Henderson |
|
Subject: |
[PULL 01/27] tcg: Fix register move type in tcg_out_ld_helper_ret |
|
Date: |
Tue, 30 May 2023 11:59:23 -0700 |
The first move was incorrectly using TCG_TYPE_I32 while the second
move was correctly using TCG_TYPE_REG. This prevents a 64-bit host
from moving all 128-bits of the return value.
Fixes: ebebea53ef8 ("tcg: Support TCG_TYPE_I128 in
tcg_out_{ld,st}_helper_{args,ret}")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
---
tcg/tcg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tcg/tcg.c b/tcg/tcg.c
index ac30d484f5..2352ca4ade 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -5736,8 +5736,8 @@ static void tcg_out_ld_helper_ret(TCGContext *s, const
TCGLabelQemuLdst *ldst,
mov[0].dst = ldst->datalo_reg;
mov[0].src =
tcg_target_call_oarg_reg(TCG_CALL_RET_NORMAL, HOST_BIG_ENDIAN);
- mov[0].dst_type = TCG_TYPE_I32;
- mov[0].src_type = TCG_TYPE_I32;
+ mov[0].dst_type = TCG_TYPE_REG;
+ mov[0].src_type = TCG_TYPE_REG;
mov[0].src_ext = TCG_TARGET_REG_BITS == 32 ? MO_32 : MO_64;
mov[1].dst = ldst->datahi_reg;
--
2.34.1
- [PULL 00/27] tcg patch queue, Richard Henderson, 2023/05/30
- [PULL 01/27] tcg: Fix register move type in tcg_out_ld_helper_ret,
Richard Henderson <=
- [PULL 06/27] tcg/aarch64: Rename temporaries, Richard Henderson, 2023/05/30
- [PULL 03/27] meson: Split test for __int128_t type from __int128_t arithmetic, Richard Henderson, 2023/05/30
- [PULL 02/27] accel/tcg: Fix check for page writeability in load_atomic16_or_exit, Richard Henderson, 2023/05/30
- [PULL 04/27] qemu/atomic128: Add x86_64 atomic128-ldst.h, Richard Henderson, 2023/05/30
- [PULL 14/27] accel/tcg: Add x86_64 load_atom_extract_al16_or_al8, Richard Henderson, 2023/05/30
- [PULL 17/27] tcg: Remove TCG_TARGET_TLB_DISPLACEMENT_BITS, Richard Henderson, 2023/05/30
- [PULL 21/27] decodetree: Do not remove output_file from /dev, Richard Henderson, 2023/05/30
- [PULL 22/27] tests/decode: Convert tests to meson, Richard Henderson, 2023/05/30
- [PULL 24/27] scripts/decodetree: Pass lvalue-formatter function to str_extract(), Richard Henderson, 2023/05/30
- [PULL 13/27] accel/tcg: Extract store_atom_insert_al16 to host header, Richard Henderson, 2023/05/30