]> git.proxmox.com Git - qemu.git/commitdiff
16/32 stack operations fix on x86_64 (aka win2000 startup bug)
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 15 Aug 2005 16:33:56 +0000 (16:33 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 15 Aug 2005 16:33:56 +0000 (16:33 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1540 c046a42c-6fe2-441c-8c8c-71466251a162

target-i386/op.c

index 142b66263590b929cdca22360a229ebd66a1e268..6370045794152a93c7e135877fabfefc8c5f81a4 100644 (file)
@@ -865,7 +865,7 @@ void OPPROTO op_decq_ECX(void)
 
 void op_addl_A0_SS(void)
 {
-    A0 += (long)env->segs[R_SS].base;
+    A0 = (uint32_t)(A0 + env->segs[R_SS].base);
 }
 
 void op_subl_A0_2(void)