qemu-devel
[Top][All Lists]
Advanced

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

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


From: Andreas Färber
Subject: Re: [Qemu-devel] [5157] ppc: fix fpr TCG registers creation
Date: Thu, 4 Sep 2008 18:43:18 +0200


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





reply via email to

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