From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bw5aU-0002dq-MB for qemu-devel@nongnu.org; Mon, 17 Oct 2016 06:56:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bw5aQ-0006Mm-RZ for qemu-devel@nongnu.org; Mon, 17 Oct 2016 06:56:10 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:50302 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bw5aQ-0006MZ-KQ for qemu-devel@nongnu.org; Mon, 17 Oct 2016 06:56:06 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u9HAsIkM041173 for ; Mon, 17 Oct 2016 06:56:05 -0400 Received: from e06smtp10.uk.ibm.com (e06smtp10.uk.ibm.com [195.75.94.106]) by mx0b-001b2d01.pphosted.com with ESMTP id 263eaqcbh1-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 17 Oct 2016 06:56:05 -0400 Received: from localhost by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 17 Oct 2016 11:56:04 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 074281B08070 for ; Mon, 17 Oct 2016 11:58:04 +0100 (BST) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u9HAu1OF30802126 for ; Mon, 17 Oct 2016 10:56:01 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u9HAu07p003758 for ; Mon, 17 Oct 2016 04:56:00 -0600 References: <1f404cfc-4917-9fc0-b628-5af22e3bf64c@msgid.tls.msk.ru> <44ae9753-110b-4419-5734-66c3b1d0f9a4@redhat.com> From: Christian Borntraeger Date: Mon, 17 Oct 2016 12:55:59 +0200 MIME-Version: 1.0 In-Reply-To: <44ae9753-110b-4419-5734-66c3b1d0f9a4@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Message-Id: <13e93e4f-97f1-d088-a170-2c0400b57175@de.ibm.com> Subject: Re: [Qemu-devel] Provide safe_syscall for s390x List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , Michael Tokarev , qemu-devel@nongnu.org, Richard Henderson On 10/17/2016 10:26 AM, Thomas Huth wrote: > On 14.10.2016 20:58, Michael Tokarev wrote: >> Hi. >> >> This commit: c9bc3437a905b660561a26cd4ecc64579843267b >> Author: Richard Henderson >> Date: Tue Jun 21 17:32:12 2016 -0700 >> >> linux-user: Provide safe_syscall for s390x >> >> does not build on debian unstable porterbox for s390x, with >> the following error message: >> >> linux-user/host/s390x/safe-syscall.inc.S: Assembler messages: >> linux-user/host/s390x/safe-syscall.inc.S:75: Error: Unrecognized opcode: >> `lt' >> rules.mak:72: recipe for target 'linux-user/safe-syscall.o' failed >> >> Since I know nothing about s390, I've no idea what's at fault >> here... :) Thought I'd report this :) > > "lt" seems to be a newer s390x opcode which has been added to the > architecture within the last ten years or so. So maybe you've got to add > some "-march=xxx" flag when compiling this file? > Could you maybe start with finding out the exact comand line that is > used to compile this file? Yes, lt was added with the extended immidiate facility. So either use -march=z9-109 (introduced in 2005) or replace the lt with an l + ltr to also run on older models.