Commit ec1ac72d9ce0bb5055b3052ae95c2c3ddfaec1d6

Authored by aurel32
1 parent a5e26afa

ppc: fix fpr TCG registers creation

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

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5157 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 0 deletions
target-ppc/translate.c
... ... @@ -141,11 +141,13 @@ void ppc_translate_init(void)
141 141 sprintf(p, "fp%d", i);
142 142 cpu_fpr[i] = tcg_global_mem_new(TCG_TYPE_I64, TCG_AREG0,
143 143 offsetof(CPUState, fpr[i]), p);
  144 + p += (i < 10) ? 4 : 5;
144 145  
145 146 sprintf(p, "avr%dH", i);
146 147 cpu_avrh[i] = tcg_global_mem_new(TCG_TYPE_I64, TCG_AREG0,
147 148 offsetof(CPUState, avr[i].u64[0]), p);
148 149 p += (i < 10) ? 6 : 7;
  150 +
149 151 sprintf(p, "avr%dL", i);
150 152 cpu_avrl[i] = tcg_global_mem_new(TCG_TYPE_I64, TCG_AREG0,
151 153 offsetof(CPUState, avr[i].u64[1]), p);
... ...