Skip to content

target/s390x: CC fixes

Ilya Leoshkevich qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 5 repliesIn review
  2. v14 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5target/s390x: Fix CLC corrupting cc_srctarget/s390x/tcg/translate.c+5 -21 reply
2/5tests/tcg/s390x: Test CLC with inaccessible second operandtests/tcg/s390x/Makefile.target tests/tcg/s390x/clc.c+49 -01 reply
3/5target/s390x: Fix LAALG not updating cc_srctarget/s390x/tcg/insn-data.h.inc target/s390x/tcg/translate.c+18 -32 replies
4/5tests/tcg/s390x: Test LAALG with negative cc_srctests/tcg/s390x/Makefile.target tests/tcg/s390x/laalg.c+28 -01 reply
5/5tests/tcg/s390x: Test ADD LOGICAL WITH CARRYtests/tcg/s390x/Makefile.target tests/tcg/s390x/add-logical-with-carry.c+157 -00 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonDavid Hildenbrand
1/5R-b R-b
2/5R-b
3/5R-b R-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] target/s390x: CC fixes

v1: https://lists.gnu.org/archive/html/qemu-devel/2023-10/msg10251.html
v1 -> v2: Introduce op_laa_addu64() (Richard).
Add the ADD LOGICAL WITH CARRY test. This was intended to catch the issue mentioned by David, but did not succeed. I thought it would still be worthwile to include it as a regression test.

Hi,

This series fixes two issues with updating CC. David was suggesting a bigger rewrite [1], but I did not dare do this (yet). Instead, these are targeted fixes: patch 1 helps with installing Fedora, and patch 3 addresses something I noticed when reviewing the code. Patches 2, 4 and 5 are tests.

Best regards,
Ilya

[1] https://gitlab.com/qemu-project/qemu/-/issues/1865#note_1545060658

Ilya Leoshkevich (5):
target/s390x: Fix CLC corrupting cc_src tests/tcg/s390x: Test CLC with inaccessible second operand target/s390x: Fix LAALG not updating cc_src tests/tcg/s390x: Test LAALG with negative cc_src tests/tcg/s390x: Test ADD LOGICAL WITH CARRY

 target/s390x/tcg/insn-data.h.inc         |   2 +-
 target/s390x/tcg/translate.c             |  26 +++-
 tests/tcg/s390x/Makefile.target          |   3 +
 tests/tcg/s390x/add-logical-with-carry.c | 156 +++++++++++++++++++++++
 tests/tcg/s390x/clc.c                    |  48 +++++++
 tests/tcg/s390x/laalg.c                  |  27 ++++
 6 files changed, 257 insertions(+), 5 deletions(-)
 create mode 100644 tests/tcg/s390x/add-logical-with-carry.c
 create mode 100644 tests/tcg/s390x/clc.c
 create mode 100644 tests/tcg/s390x/laalg.c
Signature · 1 line
2.41.0