提交 e5cc6429 编写于 作者: J Juan Quintela 提交者: Anthony Liguori

x86: mcg_cap is never 0

Signed-off-by: NJuan Quintela <quintela@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 496eb021
...@@ -154,12 +154,10 @@ void cpu_save(QEMUFile *f, void *opaque) ...@@ -154,12 +154,10 @@ void cpu_save(QEMUFile *f, void *opaque)
/* MCE */ /* MCE */
qemu_put_be64s(f, &env->mcg_cap); qemu_put_be64s(f, &env->mcg_cap);
if (env->mcg_cap) { qemu_put_be64s(f, &env->mcg_status);
qemu_put_be64s(f, &env->mcg_status); qemu_put_be64s(f, &env->mcg_ctl);
qemu_put_be64s(f, &env->mcg_ctl); for (i = 0; i < MCE_BANKS_DEF * 4; i++) {
for (i = 0; i < MCE_BANKS_DEF * 4; i++) { qemu_put_be64s(f, &env->mce_banks[i]);
qemu_put_be64s(f, &env->mce_banks[i]);
}
} }
qemu_put_be64s(f, &env->tsc_aux); qemu_put_be64s(f, &env->tsc_aux);
} }
...@@ -349,12 +347,10 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id) ...@@ -349,12 +347,10 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id)
if (version_id >= 10) { if (version_id >= 10) {
qemu_get_be64s(f, &env->mcg_cap); qemu_get_be64s(f, &env->mcg_cap);
if (env->mcg_cap) { qemu_get_be64s(f, &env->mcg_status);
qemu_get_be64s(f, &env->mcg_status); qemu_get_be64s(f, &env->mcg_ctl);
qemu_get_be64s(f, &env->mcg_ctl); for (i = 0; i < MCE_BANKS_DEF * 4; i++) {
for (i = 0; i < MCE_BANKS_DEF * 4; i++) { qemu_get_be64s(f, &env->mce_banks[i]);
qemu_get_be64s(f, &env->mce_banks[i]);
}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册