From owner-freebsd-ppc@FreeBSD.ORG Wed Sep 24 01:33:39 2014 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E320978B for ; Wed, 24 Sep 2014 01:33:39 +0000 (UTC) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C6A33873 for ; Wed, 24 Sep 2014 01:33:39 +0000 (UTC) Received: from aurora.physics.berkeley.edu (aurora.Physics.Berkeley.EDU [128.32.117.67]) (authenticated bits=0) by c.mail.sonic.net (8.14.9/8.14.9) with ESMTP id s8O1XZGN017056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 23 Sep 2014 18:33:36 -0700 Message-ID: <54221F6F.3080100@freebsd.org> Date: Tue, 23 Sep 2014 18:33:35 -0700 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Mark Millard , FreeBSD PowerPC ML Subject: Re: powerpc64/GENERIC64: a mtmsrd without a "context synchronizing instruction" (immediately?) following... References: <5A754BA9-544A-408F-B45C-691627DCA4ED@dsl-only.net> In-Reply-To: X-Sonic-CAuth: UmFuZG9tSVZTulAAL/nV9PTWZhz6EOMd8qjB5jR2C/heULbtClow5DNVFUJu0eY5t/cc3pc3Ffiurif3tVboi/EU9JVrEPO78FZRkqMxUx4= X-Sonic-ID: C;FKAkzYpD5BGuKDZXoK8kYw== M;MJp8zYpD5BGuKDZXoK8kYw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2014 01:33:40 -0000 On 09/23/14 18:25, Mark Millard wrote: > Nathan Whitehorn wrote of the use of the document that I was referencing: > >> I think you are looking at very old documentation. The 32-bit mtmsr is >> implemented on all POWER ISA compliant CPUs (see e.g. page 886 of the >> 2.07 document). >> -Nathan > > I think we may be using different documents rather than different > versions of the same document. I may need to find what Nathan is using > and its time frame (PowerPC Architecture 2.07?). But he may want to > check what I've been referencing. So... > > pem_64bit_v3.0.2005jul15.pdf is Version 3.0 and directly from the IBM > site and has 657 pages... > > https://www-01.ibm.com/chips/techlib/techlib.nsf/techdocs/F7E732FF811F783187256FDD004D3797 > > It is the current document of its type as far as I can tell. The title is: >> >> PowerPC® Microprocessor Family: >> >> The Programming Environments Manual for 64-bit Microprocessors >> >> Version 3.0 >> >> July 15, 2005. > Right, this is massively obsolete. Apparently they were planning to deprecate mtmsr and changed their minds. You want the current one from https://www.power.org/documentation/power-isa-version-2-07/. > It is described on its web page as: > >> This manual is to help programmers provide software that is >> compatible across the family of PowerPC processors. This book >> provides a general description of features common to PPC processors >> and indicates those features that are optional or that may be >> implemented differently in the design of each processor. This book is >> for only 64-bit processors. > > It is different from other architecture documents in that it also > documents the Operating Environment Architecture (supervisor > level/privileged-state resources for operating systems), not just the > UISA and VEA. The document warns that while the UISA is always adhered > to there can be VEA and OEA variations that the document does not > cover. But it also says that the "general-purpose" PowerPC > microprocessors comply with the document. In its own words... > Right, this is the same with the current version of ISA. Book-3S describes what was called the OEA at one point. In any event, your machine (a PowerPC 970) certainly supports the instruction. -Nathan