[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 8/9] target/s390x: Use mutable temporary value for op_ts
From: |
Thomas Huth |
Subject: |
[PULL 8/9] target/s390x: Use mutable temporary value for op_ts |
Date: |
Mon, 25 Mar 2024 15:12:09 +0100 |
From: Ido Plat <ido.plat@ibm.com>
Otherwise TCG would assume the register that holds t1 would be constant
and reuse whenever it needs the value within it.
Cc: qemu-stable@nongnu.org
Fixes: f1ea739bd598 ("target/s390x: Use tcg_constant_* in local contexts")
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
[iii: Adjust a newline and capitalization, add tags]
Signed-off-by: Ido Plat <ido.plat@ibm.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-ID: <20240318202722.20675-1-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
target/s390x/tcg/translate.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c
index 0d0c672c95..57b7db1ee9 100644
--- a/target/s390x/tcg/translate.c
+++ b/target/s390x/tcg/translate.c
@@ -4781,9 +4781,10 @@ static DisasJumpType op_trXX(DisasContext *s, DisasOps
*o)
static DisasJumpType op_ts(DisasContext *s, DisasOps *o)
{
- TCGv_i32 t1 = tcg_constant_i32(0xff);
+ TCGv_i32 ff = tcg_constant_i32(0xff);
+ TCGv_i32 t1 = tcg_temp_new_i32();
- tcg_gen_atomic_xchg_i32(t1, o->in2, t1, get_mem_index(s), MO_UB);
+ tcg_gen_atomic_xchg_i32(t1, o->in2, ff, get_mem_index(s), MO_UB);
tcg_gen_extract_i32(cc_op, t1, 7, 1);
set_cc_static(s);
return DISAS_NEXT;
--
2.44.0
- [PULL 0/9] Patches for QEMU 9.0-rc1, Thomas Huth, 2024/03/25
- [PULL 1/9] .travis.yml: Shorten the runtime of the problematic jobs, Thomas Huth, 2024/03/25
- [PULL 2/9] .travis.yml: Remove the unused xfslib-dev package, Thomas Huth, 2024/03/25
- [PULL 3/9] hw/microblaze: Do not allow xlnx-zynqmp-pmu-soc to be created by the user, Thomas Huth, 2024/03/25
- [PULL 4/9] aspeed: Make the ast2600-a3 SoC not user creatable, Thomas Huth, 2024/03/25
- [PULL 7/9] libqos/virtio.c: Correct 'flags' reading in qvirtqueue_kick, Thomas Huth, 2024/03/25
- [PULL 5/9] aspeed: Make the ast1030-a1 SoC not user creatable, Thomas Huth, 2024/03/25
- [PULL 8/9] target/s390x: Use mutable temporary value for op_ts,
Thomas Huth <=
- [PULL 9/9] tests/tcg/s390x: Test TEST AND SET, Thomas Huth, 2024/03/25
- [PULL 6/9] misc/pca955*: Move models under hw/gpio, Thomas Huth, 2024/03/25
- Re: [PULL 0/9] Patches for QEMU 9.0-rc1, Peter Maydell, 2024/03/25