[PATCH 0/2] target/s390x: Implement Early Exception Recognition

Ilya Leoshkevich posted 2 patches 1 year, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230314110022.184717-1-iii@linux.ibm.com
Maintainers: Thomas Huth <thuth@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, David Hildenbrand <david@redhat.com>, Ilya Leoshkevich <iii@linux.ibm.com>
There is a newer version of this series
target/s390x/cpu.c                            | 26 +++++++++++++
target/s390x/cpu.h                            |  1 +
target/s390x/tcg/excp_helper.c                |  3 +-
tests/tcg/s390x/Makefile.softmmu-target       |  1 +
tests/tcg/s390x/early-exception-recognition.S | 38 +++++++++++++++++++
5 files changed, 68 insertions(+), 1 deletion(-)
create mode 100644 tests/tcg/s390x/early-exception-recognition.S
[PATCH 0/2] target/s390x: Implement Early Exception Recognition
Posted by Ilya Leoshkevich 1 year, 1 month ago
Hi,

Currently loading bad PSW flags does not lead to an exception, which is
not correct. This series fixes this by implementing what PoP calls
"Early Exception Recognition". Since it applies to both loading PSW with
LPSW/LPSWE and to interrupt handling, s390_cpu_set_psw() looks like the
right place for it to be in.

Patch 1 fixes the issue, patch 2 adds a test.

Best regards,
Ilya

Ilya Leoshkevich (2):
  target/s390x: Implement Early Exception Recognition
  tests/tcg/s390x: Add early-exception-recognition.S

 target/s390x/cpu.c                            | 26 +++++++++++++
 target/s390x/cpu.h                            |  1 +
 target/s390x/tcg/excp_helper.c                |  3 +-
 tests/tcg/s390x/Makefile.softmmu-target       |  1 +
 tests/tcg/s390x/early-exception-recognition.S | 38 +++++++++++++++++++
 5 files changed, 68 insertions(+), 1 deletion(-)
 create mode 100644 tests/tcg/s390x/early-exception-recognition.S

-- 
2.39.2