From: Tim Deegan Subject: Re: [PATCH 10/45] xen: arm: refactor co-pro and sysreg reg handling. Date: Thu, 7 Feb 2013 15:14:25 +0000 Message-ID: <20130207151425.GJ77133@ocelot.phlegethon.org> References: <1358956576.17440.60.camel@zakaz.uk.xensource.com> <1358956611-8432-10-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1358956611-8432-10-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: stefano.stabellini@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 15:56 +0000 on 23 Jan (1358956576), Ian Campbell wrote: > AArch64 has removed the concept of co-processors replacing them with a > combination of specific instructions (cache and tlb flushes etc) and > system registers (which are understood by name in the assembler). > > However most system registers are equivalent to a particular AArch32 > co-pro register and can be used by generic code in the same way. Note > that the names of the registers differ (often only slightly) > > For consistency it would be better to use only set of names in the > common code. Therefore move the {READ,WRITE}_CP{32,64} accessors into > arm32/processor.h and provide {READ,WRITE}_SYSREG. Where the names > differ #defines will be provided on 32-bit. > > HSR_CPREG and friends are required even on 64-bit in order to decode > traps from 32 bit guests. > > Signed-off-by: Ian Campbell Acked-by: Tim Deegan