[5157] ppc: fix fpr TCG registers creation
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
Modified Paths:
--------------
trunk/target-ppc/translate.c
Modified: trunk/target-ppc/translate.c
===================================================================
target-ppc/translate.c +2 -0
@@ -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);
Am 04.09.2008 um 17:49 schrieb Aurelien Jarno:
target-ppc/translate.c line 148
Quoted 13 lines
Modified:
trunk/target-ppc/translate.c
===================================================================target-ppc/translate.c +1
-0@@ -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
Quoted 14 lines · Andreas Färber
Am 04.09.2008 um 17:49 schrieb Aurelien Jarno:
Quoted 11 lines
Modified:
trunk/target-ppc/translate.c
===================================================================target-ppc/translate.c +1
-0@@ -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 ;
Quoted 7 lines
target-ppc/translate.c line 147
Quoted 2 lines
target-ppc/translate.c +0
-0sprintf (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)
By looking at the debugging log (-d op)
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net