mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Move interrupt_request and user_mode_only to common cpu state.
Save and restore env->interrupt_request and env->halted. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4817 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
a5cdf95220
commit
9656f324d2
12 changed files with 38 additions and 28 deletions
|
@ -123,7 +123,6 @@ void cpu_save(QEMUFile *f, void *opaque)
|
|||
|
||||
qemu_put_be64s(f, &env->pat);
|
||||
qemu_put_be32s(f, &env->hflags2);
|
||||
qemu_put_be32s(f, (uint32_t *)&env->halted);
|
||||
|
||||
qemu_put_be64s(f, &env->vm_hsave);
|
||||
qemu_put_be64s(f, &env->vm_vmcb);
|
||||
|
@ -169,7 +168,8 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id)
|
|||
uint16_t fpus, fpuc, fptag, fpregs_format;
|
||||
int32_t a20_mask;
|
||||
|
||||
if (version_id != 3 && version_id != 4 && version_id != 5)
|
||||
if (version_id != 3 && version_id != 4 && version_id != 5
|
||||
&& version_id != 6)
|
||||
return -EINVAL;
|
||||
for(i = 0; i < CPU_NB_REGS; i++)
|
||||
qemu_get_betls(f, &env->regs[i]);
|
||||
|
@ -279,7 +279,8 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id)
|
|||
if (version_id >= 5) {
|
||||
qemu_get_be64s(f, &env->pat);
|
||||
qemu_get_be32s(f, &env->hflags2);
|
||||
qemu_get_be32s(f, (uint32_t *)&env->halted);
|
||||
if (version_id < 6)
|
||||
qemu_get_be32s(f, &env->halted);
|
||||
|
||||
qemu_get_be64s(f, &env->vm_hsave);
|
||||
qemu_get_be64s(f, &env->vm_vmcb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue