aboutsummaryrefslogtreecommitdiff
path: root/target-i386/machine.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-29 16:09:07 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-29 16:09:07 +0000
commitf504975609436bd708d7d8252d22fead688b87fc (patch)
tree6773a5e7d675ba4a0ec97f9e5166c49e568dba15 /target-i386/machine.c
parent558fa8361bc3e35fce73448c0b45e9d85ab59130 (diff)
downloadqemu-f504975609436bd708d7d8252d22fead688b87fc.zip
qemu-f504975609436bd708d7d8252d22fead688b87fc.tar.gz
qemu-f504975609436bd708d7d8252d22fead688b87fc.tar.bz2
Fix save/restore regression introduced by r5318
sysenter_cs is a u32 and is loaded as a u32. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5351 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/machine.c')
-rw-r--r--target-i386/machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/machine.c b/target-i386/machine.c
index 26ca0f4..b0593df 100644
--- a/target-i386/machine.c
+++ b/target-i386/machine.c
@@ -88,7 +88,7 @@ void cpu_save(QEMUFile *f, void *opaque)
cpu_put_seg(f, &env->gdt);
cpu_put_seg(f, &env->idt);
- qemu_put_betls(f, &env->sysenter_cs);
+ qemu_put_be32s(f, &env->sysenter_cs);
qemu_put_betls(f, &env->sysenter_esp);
qemu_put_betls(f, &env->sysenter_eip);