Revision 496eb021

b/target-i386/machine.c
157 157
    if (env->mcg_cap) {
158 158
        qemu_put_be64s(f, &env->mcg_status);
159 159
        qemu_put_be64s(f, &env->mcg_ctl);
160
        for (i = 0; i < MCE_BANKS_DEF; i++) {
161
            qemu_put_be64s(f, &env->mce_banks[4*i]);
162
            qemu_put_be64s(f, &env->mce_banks[4*i + 1]);
163
            qemu_put_be64s(f, &env->mce_banks[4*i + 2]);
164
            qemu_put_be64s(f, &env->mce_banks[4*i + 3]);
160
        for (i = 0; i < MCE_BANKS_DEF * 4; i++) {
161
            qemu_put_be64s(f, &env->mce_banks[i]);
165 162
        }
166 163
    }
167 164
    qemu_put_be64s(f, &env->tsc_aux);
......
355 352
        if (env->mcg_cap) {
356 353
            qemu_get_be64s(f, &env->mcg_status);
357 354
            qemu_get_be64s(f, &env->mcg_ctl);
358
            for (i = 0; i < MCE_BANKS_DEF; i++) {
359
                qemu_get_be64s(f, &env->mce_banks[4*i]);
360
                qemu_get_be64s(f, &env->mce_banks[4*i + 1]);
361
                qemu_get_be64s(f, &env->mce_banks[4*i + 2]);
362
                qemu_get_be64s(f, &env->mce_banks[4*i + 3]);
355
            for (i = 0; i < MCE_BANKS_DEF * 4; i++) {
356
                qemu_get_be64s(f, &env->mce_banks[i]);
363 357
            }
364 358
        }
365 359
    }

Also available in: Unified diff