qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v4 4/4] pc-bios: s390x: Go into disabled wait when encountering a


From: Janosch Frank
Subject: [PATCH v4 4/4] pc-bios: s390x: Go into disabled wait when encountering a PGM exception
Date: Tue, 6 Oct 2020 05:42:49 -0400

Let's setup a PGM PSW, so we won't load 0s when a program exception
happens. Instead we'll load a disabled wait PSW.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
 pc-bios/s390-ccw/start.S | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pc-bios/s390-ccw/start.S b/pc-bios/s390-ccw/start.S
index ce519300a1..4d5ad21653 100644
--- a/pc-bios/s390-ccw/start.S
+++ b/pc-bios/s390-ccw/start.S
@@ -34,7 +34,10 @@ remainder:
        larl    %r2,memsetxc
        ex      %r3,0(%r2)
 done:
-       j      main             /* And call C */
+        /* set up a pgm exception disabled wait psw */
+        larl   %r2, disabled_wait_psw
+        mvc    0x01d0(16), 0(%r2)
+        j      main            /* And call C */
 
 memsetxc:
        xc      0(1,%r1),0(%r1)
-- 
2.25.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]