Revision ec1ac72d

b/target-ppc/translate.c
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);

Also available in: Unified diff