Skip to content

S/390 host and target support

Ulrich Hecht qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4S/390 CPU emulationcpu-exec.c disas.c s390-dis.c +6 more+4636 -23 replies
2/4S/390 host/target build system supportMakefile.target configure+25 -41 reply
3/4S/390 host support for TCGdyngen-exec.h linux-user/syscall.c s390x.ld +2 more+1417 -24 replies
4/4linux-user: S/390 64-bit (s390x) supportlinux-user/elfload.c linux-user/main.c linux-user/s390x/syscall.h +7 more+1166 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] S/390 host and target support

Here's the host support again, and the s390x-linux-user target, which I think are both ready for prime time now.

The target has received an inordinate number of fixes and new instructions and now passes several test suites (including openssl and gcc executable tests), can compile source code, run ssh, rpm, you name it. It also fares reasonably well at LTP, especially with the bundle of syscall fixes I'm going to post later.

Performance has improved dramatically since last time, by a factor of six or so. I measured md5sum clocking about 4.8 times as many cycles on my Phenom with qemu-s390x as natively on our z10.

The host part has not changed dramatically. A small fix, a small optimization, and a bit of formatting to comply with the coding style. S/390 on S/390 emulation works, too. :)

CU
Uli

Ulrich Hecht (4):
S/390 CPU emulation
S/390 host/target build system support
S/390 host support for TCG
linux-user: S/390 64-bit (s390x) support

 Makefile.target                  |    9 +
 configure                        |   20 +-
 cpu-exec.c                       |   42 +
 disas.c                          |    3 +
 dyngen-exec.h                    |    2 +-
 linux-user/elfload.c             |   18 +
 linux-user/main.c                |   82 ++
 linux-user/s390x/syscall.h       |   25 +
 linux-user/s390x/syscall_nr.h    |  348 ++++++
 linux-user/s390x/target_signal.h |   26 +
 linux-user/s390x/termbits.h      |  283 +++++
 linux-user/signal.c              |  314 +++++
 linux-user/syscall.c             |   18 +-
 linux-user/syscall_defs.h        |   56 +-
 qemu-binfmt-conf.sh              |    5 +-
 s390-dis.c                       |    4 +-
 s390x.ld                         |  194 +++
 target-s390x/cpu.h               |  131 ++
 target-s390x/exec.h              |   51 +
 target-s390x/helper.c            |   81 ++
 target-s390x/helpers.h           |  128 ++
 target-s390x/op_helper.c         | 1719 ++++++++++++++++++++++++++
 target-s390x/translate.c         | 2479 ++++++++++++++++++++++++++++++++++++++
 tcg/s390/tcg-target.c            | 1145 ++++++++++++++++++
 tcg/s390/tcg-target.h            |   76 ++
 25 files changed, 7244 insertions(+), 15 deletions(-)
 create mode 100644 linux-user/s390x/syscall.h
 create mode 100644 linux-user/s390x/syscall_nr.h
 create mode 100644 linux-user/s390x/target_signal.h
 create mode 100644 linux-user/s390x/termbits.h
 create mode 100644 s390x.ld
 create mode 100644 target-s390x/cpu.h
 create mode 100644 target-s390x/exec.h
 create mode 100644 target-s390x/helper.c
 create mode 100644 target-s390x/helpers.h
 create mode 100644 target-s390x/op_helper.c
 create mode 100644 target-s390x/translate.c
 create mode 100644 tcg/s390/tcg-target.c
 create mode 100644 tcg/s390/tcg-target.h