qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] target/s390x: Implement Early Exception Recognition
@ 2023-03-14 11:00 Ilya Leoshkevich
  2023-03-14 11:00 ` [PATCH 1/2] " Ilya Leoshkevich
  2023-03-14 11:00 ` [PATCH 2/2] tests/tcg/s390x: Add early-exception-recognition.S Ilya Leoshkevich
  0 siblings, 2 replies; 7+ messages in thread
From: Ilya Leoshkevich @ 2023-03-14 11:00 UTC (permalink / raw)
  To: Richard Henderson, David Hildenbrand, Thomas Huth
  Cc: qemu-s390x, qemu-devel, Ilya Leoshkevich

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-14 17:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-14 11:00 [PATCH 0/2] target/s390x: Implement Early Exception Recognition Ilya Leoshkevich
2023-03-14 11:00 ` [PATCH 1/2] " Ilya Leoshkevich
2023-03-14 16:43   ` Richard Henderson
2023-03-14 16:54   ` David Hildenbrand
2023-03-14 17:58   ` Nina Schoetterl-Glausch
2023-03-14 11:00 ` [PATCH 2/2] tests/tcg/s390x: Add early-exception-recognition.S Ilya Leoshkevich
2023-03-14 16:44   ` Richard Henderson

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).