Received: from eggs.gnu.org ([2001:4830:134:3::10]:57270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bw90d-0003lk-T9 for qemu-devel@nongnu.org; Mon, 17 Oct 2016 10:35:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bw90Z-0002wu-0M for qemu-devel@nongnu.org; Mon, 17 Oct 2016 10:35:23 -0400 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:35887) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bw90Y-0002we-Rx for qemu-devel@nongnu.org; Mon, 17 Oct 2016 10:35:18 -0400 Received: by mail-qt0-x242.google.com with SMTP id y38so6297741qta.3 for ; Mon, 17 Oct 2016 07:35:18 -0700 (PDT) Sender: Richard Henderson References: <1f404cfc-4917-9fc0-b628-5af22e3bf64c@msgid.tls.msk.ru> <44ae9753-110b-4419-5734-66c3b1d0f9a4@redhat.com> <13e93e4f-97f1-d088-a170-2c0400b57175@de.ibm.com> From: Richard Henderson Message-ID: <68dcf37f-ccf8-0798-9112-987bd548afe9@twiddle.net> Date: Mon, 17 Oct 2016 07:35:15 -0700 MIME-Version: 1.0 In-Reply-To: <13e93e4f-97f1-d088-a170-2c0400b57175@de.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Provide safe_syscall for s390x List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger , Thomas Huth , Michael Tokarev , qemu-devel@nongnu.org On 10/17/2016 03:55 AM, Christian Borntraeger wrote: > 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. > Whoops. I'd forgotten that RHEL defaults to z196 these days. This piece of code is certainly not important enough to conditionalize on newer hardware. I'll put together a patch. r~