KVM: x86 emulator: fix 'and AL,imm8' instruction decoding
authorWei Yongjun <yjwei@cn.fujitsu.com>
Tue, 6 Jul 2010 08:51:09 +0000 (16:51 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 2 Aug 2010 03:40:24 +0000 (06:40 +0300)
commite97e883f8bfbe02cfc2bfff45e68921dfe590c7e
treeca9ba2e7f5ca10b406aecaf1c9401f937dbed248
parentce7a0ad3bdcd86e6cf907eb5992fecb1503daa26
KVM: x86 emulator: fix 'and AL,imm8' instruction decoding

'and AL,imm8' should be mask as ByteOp, otherwise the dest operand
length will no correct and we may fill the full EAX when writeback.

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