KVM: x86 emulator: add support for writing back the source operand
authorAvi Kivity <avi.kivity@gmail.com>
Sat, 9 Feb 2013 09:31:44 +0000 (11:31 +0200)
committerGleb Natapov <gleb@redhat.com>
Tue, 21 May 2013 12:43:14 +0000 (15:43 +0300)
Some instructions write back the source operand, not just the destination.
Add support for doing this via the decode flags.

Gleb: add BUG_ON() to prevent source to be memory operand.

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

Simple merge