]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: qualify OpReg inhibit_byte_regs hack
authorAvi Kivity <avi@redhat.com>
Tue, 13 Sep 2011 07:45:46 +0000 (10:45 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:52:53 +0000 (19:52 +0300)
commit0a7d66457f3b88e9f7876dcee180cddd08e92e5d
treeffef4ae801406f1ae03352022bce1ad647dc82a3
parent652d68acd346e5a9fed6322db3eac3a701a62ff6
KVM: x86 emulator: qualify OpReg inhibit_byte_regs hack

OpReg decoding has a hack that inhibits byte registers for movsx and movzx
instructions.  It should be replaced by something better, but meanwhile,
qualify that the hack is only active for the destination operand.

Note these instructions only use OpReg for the destination, but better to
be explicit about it.

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