From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=44356 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMq6H-00043U-OU for qemu-devel@nongnu.org; Thu, 10 Jun 2010 18:19:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMq6G-0002AA-M5 for qemu-devel@nongnu.org; Thu, 10 Jun 2010 18:19:49 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:60408) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMq6G-0002A3-IK for qemu-devel@nongnu.org; Thu, 10 Jun 2010 18:19:48 -0400 Received: by vws12 with SMTP id 12so419742vws.4 for ; Thu, 10 Jun 2010 15:19:48 -0700 (PDT) Sender: Richard Henderson Message-ID: <4C1164ED.7020403@twiddle.net> Date: Thu, 10 Jun 2010 15:19:25 -0700 From: Richard Henderson MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 15/35] tcg-s390: Query instruction extensions that are installed. References: <1275678883-7082-1-git-send-email-rth@twiddle.net> <1275678883-7082-16-git-send-email-rth@twiddle.net> <20100610102815.GM26968@volta.aurel32.net> In-Reply-To: <20100610102815.GM26968@volta.aurel32.net> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: qemu-devel@nongnu.org, agraf@suse.de On 06/10/2010 03:28 AM, Aurelien Jarno wrote: >> + asm volatile(".word 0xb2b0,0x1000" >> + : "=r"(r0) : "0"(0), "r"(r1) : "memory", "cc"); > > Wouldn't it be possible to use the instruction directly instead of > dumping the opcode values? Same below No, they aren't recognized by older assemblers. For instance, the one shipped with RHEL 5.5, and possibly even by Debian Lenny (I don't currently have access to that machine to check). Apparently some of these are quite new insns -- 2008 era. That said, all the hardware to which either I or agraf have access are the latest z10 machines. Frankly I expect that to be true of most if not all machines, since I think it's just a microcode update which everyone with an active support contract can get. r~