Revision 2436b61a target-i386/machine.c

b/target-i386/machine.c
88 88
    cpu_put_seg(f, &env->gdt);
89 89
    cpu_put_seg(f, &env->idt);
90 90

  
91
    qemu_put_be32s(f, &env->sysenter_cs);
92
    qemu_put_be32s(f, &env->sysenter_esp);
93
    qemu_put_be32s(f, &env->sysenter_eip);
91
    qemu_put_betls(f, &env->sysenter_cs);
92
    qemu_put_betls(f, &env->sysenter_esp);
93
    qemu_put_betls(f, &env->sysenter_eip);
94 94

  
95 95
    qemu_put_betls(f, &env->cr[0]);
96 96
    qemu_put_betls(f, &env->cr[2]);
......
169 169
    int32_t a20_mask;
170 170

  
171 171
    if (version_id != 3 && version_id != 4 && version_id != 5
172
        && version_id != 6)
172
        && version_id != 6 && version_id != 7)
173 173
        return -EINVAL;
174 174
    for(i = 0; i < CPU_NB_REGS; i++)
175 175
        qemu_get_betls(f, &env->regs[i]);
......
244 244
    cpu_get_seg(f, &env->idt);
245 245

  
246 246
    qemu_get_be32s(f, &env->sysenter_cs);
247
    qemu_get_be32s(f, &env->sysenter_esp);
248
    qemu_get_be32s(f, &env->sysenter_eip);
247
    if (version_id >= 7) {
248
        qemu_get_betls(f, &env->sysenter_esp);
249
        qemu_get_betls(f, &env->sysenter_eip);
250
    } else {
251
        qemu_get_be32s(f, &env->sysenter_esp);
252
        qemu_get_be32s(f, &env->sysenter_eip);
253
    }
249 254

  
250 255
    qemu_get_betls(f, &env->cr[0]);
251 256
    qemu_get_betls(f, &env->cr[2]);

Also available in: Unified diff