mbox series

[v5,0/4] target/s390x: Emulate CVDG and CVB*

Message ID 20240205205830.6425-1-iii@linux.ibm.com (mailing list archive)
Headers show
Series target/s390x: Emulate CVDG and CVB* | expand

Message

Ilya Leoshkevich Feb. 5, 2024, 8:54 p.m. UTC
v4: https://lists.gnu.org/archive/html/qemu-devel/2024-02/msg00434.html
v4 -> v5: Remove a redundant CVBG overflow check;
          Write the comment explaining the remaining CVBG overflow
          check;
          Add R-bs to the tests (Thomas).

v3: https://lists.gnu.org/archive/html/qemu-devel/2024-01/msg06664.html
v3 -> v4: Implement CVB error handling (David/Thomas).

v2: https://lists.gnu.org/archive/html/qemu-devel/2024-01/msg05048.html
v2 -> v3: Resurrect an old CVB* patch (Thomas).
          Add Richard's R-b.

v1: https://lists.gnu.org/archive/html/qemu-devel/2024-01/msg02865.html
v1 -> v2: Fix !CONFIG_INT128 builds (Richard).

Hi,

Ido reported that we are missing the CVDG emulation (which is very
similar to the existing CVD emulation). This series adds it along with
a test.

Best regards,
Ilya

Ilya Leoshkevich (4):
  target/s390x: Emulate CVDG
  target/s390x: Emulate CVB, CVBY and CVBG
  tests/tcg/s390x: Test CONVERT TO DECIMAL
  tests/tcg/s390x: Test CONVERT TO BINARY

 target/s390x/helper.h            |   3 +
 target/s390x/tcg/insn-data.h.inc |   5 ++
 target/s390x/tcg/int_helper.c    |  97 +++++++++++++++++++++++++++++
 target/s390x/tcg/translate.c     |  24 ++++++++
 tests/tcg/s390x/Makefile.target  |   2 +
 tests/tcg/s390x/cvb.c            | 102 +++++++++++++++++++++++++++++++
 tests/tcg/s390x/cvd.c            |  63 +++++++++++++++++++
 7 files changed, 296 insertions(+)
 create mode 100644 tests/tcg/s390x/cvb.c
 create mode 100644 tests/tcg/s390x/cvd.c