]> Pileus Git - ~andy/linux/commit
KVM: x86 emulator: fix byte-sized MOVZX/MOVSX
authorAvi Kivity <avi@redhat.com>
Mon, 11 Jun 2012 16:40:15 +0000 (19:40 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 9 Jul 2012 11:19:03 +0000 (14:19 +0300)
commit361cad2b50a2c92b91b6f568db860fabad3bf149
tree1be8ea835650139140e3d1ee39bb1e556f53c813
parent2dd7caa092f0b1200a885a418e5d33b222183a71
KVM: x86 emulator: fix byte-sized MOVZX/MOVSX

Commit 2adb5ad9fe1 removed ByteOp from MOVZX/MOVSX, replacing them by
SrcMem8, but neglected to fix the dependency in the emulation code
on ByteOp.  This caused the instruction not to have any effect in
some circumstances.

Fix by replacing the check for ByteOp with the equivalent src.op_bytes == 1.

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