KVM: x86 emulator: add decoding of X,Y parameters from Intel SDM
authorGleb Natapov <gleb@redhat.com>
Thu, 18 Mar 2010 13:20:21 +0000 (15:20 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:16:21 +0000 (12:16 +0300)
commita682e35449abc83d260a8219015c7cb4b25ecced
tree41349e491e41f4c4c33a12534ece4d4b1cceb898
parent69f55cb11e8d789433d111ac3a0f60be37a1ae01
KVM: x86 emulator: add decoding of X,Y parameters from Intel SDM

Add decoding of X,Y parameters from Intel SDM which are used by string
instruction to specify source and destination. Use this new decoding
to implement movs, cmps, stos, lods in a generic way.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c