From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nm6CD-00041i-TR for qemu-devel@nongnu.org; Mon, 01 Mar 2010 09:02:05 -0500 Received: from [199.232.76.173] (port=57508 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm6CD-00041H-Gn for qemu-devel@nongnu.org; Mon, 01 Mar 2010 09:02:05 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nm6CC-00007L-S1 for qemu-devel@nongnu.org; Mon, 01 Mar 2010 09:02:05 -0500 Received: from mx20.gnu.org ([199.232.41.8]:15375) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nm6CC-00007F-Kk for qemu-devel@nongnu.org; Mon, 01 Mar 2010 09:02:04 -0500 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nm6CB-0002xv-Jr for qemu-devel@nongnu.org; Mon, 01 Mar 2010 09:02:03 -0500 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH 0/2] simplify global register save/restore Date: Mon, 1 Mar 2010 14:02:00 +0000 References: <1265844362-29836-1-git-send-email-pbonzini@redhat.com> <201002261832.01836.paul@codesourcery.com> <4B8BB34A.5060702@redhat.com> In-Reply-To: <4B8BB34A.5060702@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201003011402.01199.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini > On 02/26/2010 07:32 PM, Paul Brook wrote: > >> > You could still use them for local register variables, but I can > >> > prepare a patch to remove them (unless you do that yourself). > > > > I'm not sure what you mean by a "local register variable". > > I'm thinking of using > > register blah blah asm(AREG1); > as a local variable to work around deficiencies in GCC's register > allocator. I've seen that elsewhere though not in QEMU. This probably doesn't do what you (or others) think it does. Local register variables are only honoured when used as operands to asm statements. This implies you already have cpu specific code, so there's no point generalising. > If you prefer to remove everything, fine. I would prefer they are removed. Paul