summaryrefslogtreecommitdiff
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
commit4c951aa0a0a3a8bded6b210c57ad937b60c380a8 (patch)
tree6773a5e7d675ba4a0ec97f9e5166c49e568dba15
parent287e7a95751c9c1899351ca2a0153b83d5041126 (diff)
downloadqemu-4c951aa0a0a3a8bded6b210c57ad937b60c380a8.tar.gz
qemu-4c951aa0a0a3a8bded6b210c57ad937b60c380a8.tar.bz2
qemu-4c951aa0a0a3a8bded6b210c57ad937b60c380a8.zip
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
-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 26ca0f4a83..b0593dfb4e 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);