qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [5157] ppc: fix fpr TCG registers creation
Date: Thu, 04 Sep 2008 15:49:13 +0000	[thread overview]
Message-ID: <E1KbH57-0000XB-6T@cvs.savannah.gnu.org> (raw)

Revision: 5157
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5157
Author:   aurel32
Date:     2008-09-04 15:49:12 +0000 (Thu, 04 Sep 2008)

Log Message:
-----------
ppc: fix fpr TCG registers creation

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

Modified Paths:
--------------
    trunk/target-ppc/translate.c

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,
                                          offsetof(CPUState, avr[i].u64[0]), p);
         p += (i < 10) ? 6 : 7;
+
         sprintf(p, "avr%dL", i);
         cpu_avrl[i] = tcg_global_mem_new(TCG_TYPE_I64, TCG_AREG0,
                                          offsetof(CPUState, avr[i].u64[1]), p);

             reply	other threads:[~2008-09-04 15:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-04 15:49 Aurelien Jarno [this message]
2008-09-04 16:43 ` [Qemu-devel] [5157] ppc: fix fpr TCG registers creation Andreas Färber
2008-09-04 17:06   ` Aurelien Jarno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1KbH57-0000XB-6T@cvs.savannah.gnu.org \
    --to=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).