KVM: x86 emulator: Remove byte-sized MOVSX/MOVZX hack
authorAvi Kivity <avi@redhat.com>
Mon, 16 Jan 2012 13:08:45 +0000 (15:08 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:42 +0000 (14:52 +0200)
commit2adb5ad9fe1b44d0ae8b00d2bd6568e6163215b3
tree810f4ee0e638b1774efae25cfcc5a7090e47fed7
parent28867cee754c07b3fa0a679ed2ea394843130217
KVM: x86 emulator: Remove byte-sized MOVSX/MOVZX hack

Currently we treat MOVSX/MOVZX with a byte source as a byte instruction,
and change the destination operand size with a hack.  Change it to be
a word instruction, so the destination receives its natural size, and
change the source to be SrcMem8.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c