KVM: x86 emulator: fix smsw and lmsw with a memory operand
authorAvi Kivity <avi@qumranet.com>
Mon, 14 Apr 2008 11:40:50 +0000 (14:40 +0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 15:21:34 +0000 (18:21 +0300)
commit16286d082d99cb41e16938fa6ba84604229f4b77
tree4320f07eea5e48e617c03d732b178d9d99f81f41
parent66b85505736dbd3a3a0ed5ae38c12bb218b231c0
KVM: x86 emulator: fix smsw and lmsw with a memory operand

lmsw and smsw were implemented only with a register operand.  Extend them
to support a memory operand as well.  Fixes Windows running some display
compatibility test on AMD hosts.

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