From: Janosch Frank Date: Tue, 6 Oct 2020 09:42:49 +0000 (-0400) Subject: pc-bios: s390x: Go into disabled wait when encountering a PGM exception X-Git-Tag: v5.2.0-rc0~70^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25f5adea5a10fe204e41d085dff6ea94aaf80a9f;p=thirdparty%2Fqemu.git 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 Reviewed-by: Christian Borntraeger Reviewed-by: Thomas Huth Message-Id: <20201006094249.50640-5-frankja@linux.ibm.com> Signed-off-by: Thomas Huth --- diff --git a/pc-bios/s390-ccw/start.S b/pc-bios/s390-ccw/start.S index ce519300a1f..4d5ad21653d 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)