Revision e5cc6429 target-i386/machine.c

b/target-i386/machine.c
154 154

  
155 155
    /* MCE */
156 156
    qemu_put_be64s(f, &env->mcg_cap);
157
    if (env->mcg_cap) {
158
        qemu_put_be64s(f, &env->mcg_status);
159
        qemu_put_be64s(f, &env->mcg_ctl);
160
        for (i = 0; i < MCE_BANKS_DEF * 4; i++) {
161
            qemu_put_be64s(f, &env->mce_banks[i]);
162
        }
157
    qemu_put_be64s(f, &env->mcg_status);
158
    qemu_put_be64s(f, &env->mcg_ctl);
159
    for (i = 0; i < MCE_BANKS_DEF * 4; i++) {
160
        qemu_put_be64s(f, &env->mce_banks[i]);
163 161
    }
164 162
    qemu_put_be64s(f, &env->tsc_aux);
165 163
 }
......
349 347

  
350 348
    if (version_id >= 10) {
351 349
        qemu_get_be64s(f, &env->mcg_cap);
352
        if (env->mcg_cap) {
353
            qemu_get_be64s(f, &env->mcg_status);
354
            qemu_get_be64s(f, &env->mcg_ctl);
355
            for (i = 0; i < MCE_BANKS_DEF * 4; i++) {
356
                qemu_get_be64s(f, &env->mce_banks[i]);
357
            }
350
        qemu_get_be64s(f, &env->mcg_status);
351
        qemu_get_be64s(f, &env->mcg_ctl);
352
        for (i = 0; i < MCE_BANKS_DEF * 4; i++) {
353
            qemu_get_be64s(f, &env->mce_banks[i]);
358 354
        }
359 355
    }
360 356

  

Also available in: Unified diff