From: Avi Kivity Date: Thu, 6 Dec 2007 16:14:14 +0000 (+0200) Subject: KVM: x86 emulator: Fix stack instructions on 64-bit mode X-Git-Tag: v2.6.25-rc1~1138^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e3d5dfbad4d8c29bdf8ed160f91f955f0efc12b;p=pandora-kernel.git KVM: x86 emulator: Fix stack instructions on 64-bit mode Stack instructions are always 64-bit on 64-bit mode; many of the emulated stack instructions did not take that into account. Fix by adding a 'Stack' bitflag and setting the operand size appropriately during the decode stage (except for 'push r/m', which is in a group with a few other instructions, so it gets its own treatment). This fixes random crashes on Vista x64. Signed-off-by: Avi Kivity --- Reading git-diff-tree failed