mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 02:01:29 +00:00
KVM: x86 emulator: fix LMSW able to clear cr0.pe
LMSW is documented not to be able to clear cr0.pe; make it so. Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
e85d28f8e8
commit
9928ff608b
@ -3211,7 +3211,7 @@ twobyte_insn:
|
||||
c->dst.val = ops->get_cr(0, ctxt->vcpu);
|
||||
break;
|
||||
case 6: /* lmsw */
|
||||
ops->set_cr(0, (ops->get_cr(0, ctxt->vcpu) & ~0x0ful) |
|
||||
ops->set_cr(0, (ops->get_cr(0, ctxt->vcpu) & ~0x0eul) |
|
||||
(c->src.val & 0x0f), ctxt->vcpu);
|
||||
c->dst.type = OP_NONE;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user