qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] linux-user: Fix s390x safe-syscall for z900
@ 2016-10-18 16:42 Richard Henderson
  2016-10-18 16:51 ` Thomas Huth
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Henderson @ 2016-10-18 16:42 UTC (permalink / raw)
  To: qemu-devel; +Cc: riku.voipio

The LT instruction was added in the extended immediate facility
introduced with the z9-109 processor.

Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Fixes: c9bc3437a905b660561a26cd4ecc64579843267b
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 linux-user/host/s390x/safe-syscall.inc.S | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/linux-user/host/s390x/safe-syscall.inc.S b/linux-user/host/s390x/safe-syscall.inc.S
index f1b446a..61d75dc 100644
--- a/linux-user/host/s390x/safe-syscall.inc.S
+++ b/linux-user/host/s390x/safe-syscall.inc.S
@@ -72,7 +72,8 @@ safe_syscall_base:
 	 */
 safe_syscall_start:
 	/* if signal_pending is non-zero, don't do the call */
-	lt	%r0,0(%r8)
+	l	%r0,0(%r8)
+	ltr	%r0,%r0
 	jne	2f
 	svc	0
 safe_syscall_end:
-- 
2.7.4

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

end of thread, other threads:[~2016-10-18 16:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-18 16:42 [Qemu-devel] [PATCH] linux-user: Fix s390x safe-syscall for z900 Richard Henderson
2016-10-18 16:51 ` Thomas Huth

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