Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbHvu-0006n4-DQ for qemu-devel@nongnu.org; Thu, 04 Sep 2008 12:43:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbHvr-0006iW-QO for qemu-devel@nongnu.org; Thu, 04 Sep 2008 12:43:45 -0400 Received: from [199.232.76.173] (port=46822 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbHvr-0006iP-Ky for qemu-devel@nongnu.org; Thu, 04 Sep 2008 12:43:43 -0400 Received: from gv-out-0910.google.com ([216.239.58.190]:23083) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbHvr-0004vt-GN for qemu-devel@nongnu.org; Thu, 04 Sep 2008 12:43:43 -0400 Received: by gv-out-0910.google.com with SMTP id n8so1691gve.36 for ; Thu, 04 Sep 2008 09:43:42 -0700 (PDT) Message-Id: From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: [Qemu-devel] [5157] ppc: fix fpr TCG registers creation Date: Thu, 4 Sep 2008 18:43:18 +0200 References: 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 Am 04.09.2008 um 17:49 schrieb Aurelien Jarno: > Modified: trunk/target-ppc/translate.c > =================================================================== > --- trunk/target-ppc/translate.c 2008-09-04 14:43:54 UTC (rev 5156) > +++ trunk/target-ppc/translate.c 2008-09-04 15:49:12 UTC (rev 5157) > @@ -141,11 +141,13 @@ > sprintf(p, "fp%d", i); > cpu_fpr[i] = tcg_global_mem_new(TCG_TYPE_I64, TCG_AREG0, > offsetof(CPUState, fpr[i]), > p); > + p += (i < 10) ? 4 : 5; > > sprintf(p, "avr%dH", i); > cpu_avrh[i] = tcg_global_mem_new(TCG_TYPE_I64, TCG_AREG0, Ouch, thanks for noticing! Where would I notice this issue btw? (apart from code review) Andreas