Skip to content
Commit 6e3d5dfb authored by Avi Kivity's avatar Avi Kivity
Browse files

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: default avatarAvi Kivity <avi@qumranet.com>
parent 152ff9be
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment