KVM: x86 emulator: fix writes to registers with modrm encodings
authorAvi Kivity <avi@qumranet.com>
Mon, 5 May 2008 11:58:26 +0000 (14:58 +0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 18 May 2008 11:34:14 +0000 (14:34 +0300)
A register destination encoded with a mod=3 encoding left dst.ptr NULL.
Normally we don't trap writes to registers, but in the case of smsw, we do.

Fix by pointing dst.ptr at the destination register.

Signed-off-by: Avi Kivity <avi@qumranet.com>

No differences found