]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: Use a register for ____emulate_2op() destination
authorAvi Kivity <avi@redhat.com>
Mon, 16 Aug 2010 14:50:56 +0000 (17:50 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:11 +0000 (10:51 +0200)
commit2b293fcae8abd07206c1ce61697feb305b3374e5
treea91a85707f1273e3f6eda11d616d8da55556a4f9
parentedb3099fe13d9607296e7c317cd5019e654477df
KVM: x86 emulator: Use a register for ____emulate_2op() destination

Most x86 two operand instructions allow the destination to be a memory operand,
but IMUL (for example) requires that the destination be a register.  Change
____emulate_2op() to take a register for both source and destination so we
can invoke IMUL.

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