From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47828 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ON3yB-0001Vn-0s for qemu-devel@nongnu.org; Fri, 11 Jun 2010 09:08:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ON3y7-0004cB-Vh for qemu-devel@nongnu.org; Fri, 11 Jun 2010 09:08:20 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:34117) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ON3y7-0004c2-ST for qemu-devel@nongnu.org; Fri, 11 Jun 2010 09:08:19 -0400 Received: by vws12 with SMTP id 12so1115570vws.4 for ; Fri, 11 Jun 2010 06:08:19 -0700 (PDT) Sender: Richard Henderson Message-ID: <4C123528.6050500@twiddle.net> Date: Fri, 11 Jun 2010 06:07:52 -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> <4C1164ED.7020403@twiddle.net> <20100611080634.GP26968@volta.aurel32.net> In-Reply-To: <20100611080634.GP26968@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/11/2010 01:06 AM, Aurelien Jarno wrote: > What's the difference between FACILITY_ZARCH and FACILITY_ZARCH_ACTIVE, > as both are actually flagged together. My guess is that > FACILITY_ZARCH_ACTIVE is needed in 64-bit mode, why FACILITY_ZARCH is > only needed for a possible future 32-bit mode. Is it correct? Loosely, ZARCH is set when the system is 64-bit capable, whether or not it is active. The OS would check this bit at startup if it wanted to change modes. This bit isn't really interesting to us in userspace. ZARCH_ACTIVE is set when the system is in 64-bit mode, i.e. you've booted with a 64-bit kernel. Note that this says nothing about the address decoding mode -- this bit can be set while the PSW is set for 31-bit address translation, e.g. running a 32-bit program on a 64-bit kernel. r~