From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwXTY-00054i-9z for qemu-devel@nongnu.org; Tue, 18 Oct 2016 12:42:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwXTV-000735-NZ for qemu-devel@nongnu.org; Tue, 18 Oct 2016 12:42:52 -0400 Received: from mail-it0-x244.google.com ([2607:f8b0:4001:c0b::244]:33370) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwXTV-00072y-IB for qemu-devel@nongnu.org; Tue, 18 Oct 2016 12:42:49 -0400 Received: by mail-it0-x244.google.com with SMTP id k64so185322itb.0 for ; Tue, 18 Oct 2016 09:42:49 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Tue, 18 Oct 2016 09:42:16 -0700 Message-Id: <1476808936-11735-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH] linux-user: Fix s390x safe-syscall for z900 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: riku.voipio@iki.fi The LT instruction was added in the extended immediate facility introduced with the z9-109 processor. Reported-by: Michael Tokarev Fixes: c9bc3437a905b660561a26cd4ecc64579843267b Signed-off-by: Richard Henderson --- 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