Skip to content
Commit 107d6d2e authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: x86 emulator: fix writes to registers with modrm encodings



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: default avatarAvi Kivity <avi@qumranet.com>
parent f26a3988
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment