From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzaPI-0006yC-Js for qemu-devel@nongnu.org; Mon, 10 Nov 2008 12:18:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzaPG-0006xB-VJ for qemu-devel@nongnu.org; Mon, 10 Nov 2008 12:18:32 -0500 Received: from [199.232.76.173] (port=48991 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzaPG-0006x3-RR for qemu-devel@nongnu.org; Mon, 10 Nov 2008 12:18:30 -0500 Received: from wf-out-1314.google.com ([209.85.200.172]:42513) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KzaPG-00030r-Fo for qemu-devel@nongnu.org; Mon, 10 Nov 2008 12:18:30 -0500 Received: by wf-out-1314.google.com with SMTP id 27so2723389wfd.4 for ; Mon, 10 Nov 2008 09:18:27 -0800 (PST) Message-ID: <761ea48b0811100918m61f8d608i69579147bedd60b6@mail.gmail.com> Date: Mon, 10 Nov 2008 18:18:27 +0100 From: "Laurent Desnogues" Subject: Re: [Qemu-devel] [5645] target-alpha: fix locked loads/stores In-Reply-To: <58BD0469C48A7443A479A13D101685E301647278@ala-mail09.corp.ad.wrs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <58BD0469C48A7443A479A13D101685E301647278@ala-mail09.corp.ad.wrs.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, Nov 10, 2008 at 6:07 PM, Krumme, Chris wrote: > >> TCGv addr = tcg_temp_new(TCG_TYPE_I64); >> + if (local) >> + addr = tcg_temp_local_new(TCG_TYPE_I64); >> + else >> + addr = tcg_temp_new(TCG_TYPE_I64); > > I don't fully understand how these things work, but for the non-local > case you are calling tcg_temp_new twice. You are right, the call in the declaration should be removed. Laurent