KVM: x86 emulator: split dst decode to a generic decode_operand()
authorAvi Kivity <avi@redhat.com>
Tue, 13 Sep 2011 07:45:41 +0000 (10:45 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:52:48 +0000 (19:52 +0300)
commita99455499a86bde28fccd84e2119be9cd7c23a3f
treecea278f1fa7d9edb1581e0704b44da23be7561cc
parentf09ed83e211d253809e575e05bd4de1e335c0cb2
KVM: x86 emulator: split dst decode to a generic decode_operand()

Instead of decoding each operand using its own code, use a generic
function.  Start with the destination operand.

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