aboutsummaryrefslogtreecommitdiff
path: root/pc-bios
diff options
context:
space:
mode:
authorJanosch Frank <frankja@linux.ibm.com>2020-10-06 05:42:49 -0400
committerThomas Huth <thuth@redhat.com>2020-10-06 20:14:48 +0200
commit25f5adea5a10fe204e41d085dff6ea94aaf80a9f (patch)
treed4c600c9676b7cbd6901f83a051ecc532497f1f4 /pc-bios
parent42ab98e7d71b834f4f8e2471f60b1c737b9543f3 (diff)
downloadqemu-25f5adea5a10fe204e41d085dff6ea94aaf80a9f.zip
qemu-25f5adea5a10fe204e41d085dff6ea94aaf80a9f.tar.gz
qemu-25f5adea5a10fe204e41d085dff6ea94aaf80a9f.tar.bz2
pc-bios: s390x: Go into disabled wait when encountering a PGM exception
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> Message-Id: <20201006094249.50640-5-frankja@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'pc-bios')
-rw-r--r--pc-bios/s390-ccw/start.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/pc-bios/s390-ccw/start.S b/pc-bios/s390-ccw/start.S
index ce51930..4d5ad21 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)