From: Thomas Huth <thuth@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, qemu-s390x@nongnu.org,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Ilya Leoshkevich" <iii@linux.ibm.com>
Subject: [risu PATCH v3 0/7] Add support for s390x to RISU
Date: Thu, 14 Sep 2023 13:33:04 +0200 [thread overview]
Message-ID: <20230914113311.379537-1-thuth@redhat.com> (raw)
Hi Peter!
Here are some patches that add basic support for s390x to RISU.
It's still quite limited, e.g. no support for load/store memory
operations yet, but the basics with simple 16-bit or 32-bit
instructions work *now* already fine.
(I'm also already experimenting in extending RISU to support
instructions with opcodes lengths > 32-bit, but the patches
are not quite ready yet)
v3:
- Use si_addr to get the address of the faulting instruction
(since the PSW address in the ucontext already points to the
next instruction)
- Use the kernel header asm/ucontext.h instead the one from the
glibc since the latter does not provide information about
vector registers (VRs are not used yet, but will be added later)
- Disable exceptions in the floating point control register so
we can also test floating point instructions
- Added some more instructions to s390x.risu
- Added RFC patch to compile test aarch64, ppc64le and s390x on
Travis-CI
v2:
- Removed the code to avoid r14 (return address) and r15 (stack pointer)
since it is not necessary anymore since commit ad82a069e8d6a
- Initialize the floating point registers in test_s390x.S, too
- Added Acked-bys and Reviewed-bys from v1
Thomas Huth (7):
Pass siginfo_t->si_addr to the reginfo_init() function
s390x: Add basic s390x support to the C code
s390x: Add simple s390x.risu file
s390x: Add basic risugen perl module for s390x
s390x: Update the configure script for s390x support
build-all-archs: Add s390x to the script that builds all architectures
Add a travis.yml file for testing RISU in the Travis-CI
.travis.yml | 37 ++++++++
build-all-archs | 3 +-
configure | 4 +-
risu.c | 12 +--
risu.h | 2 +-
risu_reginfo_aarch64.c | 2 +-
risu_reginfo_arm.c | 2 +-
risu_reginfo_i386.c | 2 +-
risu_reginfo_loongarch64.c | 2 +-
risu_reginfo_m68k.c | 2 +-
risu_reginfo_ppc64.c | 2 +-
risu_reginfo_s390x.c | 140 ++++++++++++++++++++++++++++
risu_reginfo_s390x.h | 25 +++++
risu_s390x.c | 51 ++++++++++
risugen_s390x.pm | 186 +++++++++++++++++++++++++++++++++++++
s390x.risu | 81 ++++++++++++++++
test_s390x.S | 53 +++++++++++
17 files changed, 591 insertions(+), 15 deletions(-)
create mode 100644 .travis.yml
create mode 100644 risu_reginfo_s390x.c
create mode 100644 risu_reginfo_s390x.h
create mode 100644 risu_s390x.c
create mode 100644 risugen_s390x.pm
create mode 100644 s390x.risu
create mode 100644 test_s390x.S
--
2.41.0
next reply other threads:[~2023-09-14 11:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-14 11:33 Thomas Huth [this message]
2023-09-14 11:33 ` [risu PATCH v3 1/7] Pass siginfo_t->si_addr to the reginfo_init() function Thomas Huth
2023-09-14 11:33 ` [risu PATCH v3 2/7] s390x: Add basic s390x support to the C code Thomas Huth
2023-09-14 11:33 ` [risu PATCH v3 3/7] s390x: Add simple s390x.risu file Thomas Huth
2023-09-14 11:33 ` [risu PATCH v3 4/7] s390x: Add basic risugen perl module for s390x Thomas Huth
2023-09-14 11:33 ` [risu PATCH v3 5/7] s390x: Update the configure script for s390x support Thomas Huth
2023-09-14 11:33 ` [risu PATCH v3 6/7] build-all-archs: Add s390x to the script that builds all architectures Thomas Huth
2023-09-14 11:33 ` [risu RFC PATCH v3 7/7] Add a travis.yml file for testing RISU in the Travis-CI Thomas Huth
2023-09-18 12:27 ` [risu PATCH v3 0/7] Add support for s390x to RISU Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230914113311.379537-1-thuth@redhat.com \
--to=thuth@redhat.com \
--cc=iii@linux.ibm.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).