qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5157] ppc: fix fpr TCG registers creation


From: Aurelien Jarno
Subject: [Qemu-devel] [5157] ppc: fix fpr TCG registers creation
Date: Thu, 04 Sep 2008 15:49:13 +0000

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 <address@hidden>

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 via email to

[Prev in Thread] Current Thread [Next in Thread]