On 14.03.23 12:00, Ilya Leoshkevich wrote:
Generate specification exception if a reserved bit is set in the PSW
mask or if the PSW address is out of bounds dictated by the addresing
mode.

Reported-by: Nina Schoetterl-Glausch <n...@linux.ibm.com>

Unofficially known to be broken (and ignored) for a long time :D

Signed-off-by: Ilya Leoshkevich <i...@linux.ibm.com>
---
  target/s390x/cpu.c             | 26 ++++++++++++++++++++++++++
  target/s390x/cpu.h             |  1 +
  target/s390x/tcg/excp_helper.c |  3 ++-
  3 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
index b10a8541ff8..8e6e46aa3d8 100644
--- a/target/s390x/cpu.c
+++ b/target/s390x/cpu.c
@@ -41,6 +41,26 @@
  #define CR0_RESET       0xE0UL
  #define CR14_RESET      0xC2000000UL;
+#ifndef CONFIG_USER_ONLY
+static bool is_early_exception_recognized(uint64_t mask, uint64_t addr)

Nit: I'd call this is_early_exception_psw() or sth like that.

Thanks!

Reviewed-by: David Hildenbrand <da...@redhat.com>

--
Thanks,

David / dhildenb


Reply via email to