KVM: Remove pointer to rflags from realmode_set_cr parameters.
Mov reg, cr instruction doesn't change flags in any meaningful way, so no need to update rflags after instruction execution. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
@@ -2534,8 +2534,7 @@ twobyte_insn:
|
||||
case 0x22: /* mov reg, cr */
|
||||
if (c->modrm_mod != 3)
|
||||
goto cannot_emulate;
|
||||
realmode_set_cr(ctxt->vcpu,
|
||||
c->modrm_reg, c->modrm_val, &ctxt->eflags);
|
||||
realmode_set_cr(ctxt->vcpu, c->modrm_reg, c->modrm_val);
|
||||
c->dst.type = OP_NONE;
|
||||
break;
|
||||
case 0x23: /* mov from reg to dr */
|
||||
|
Reference in New Issue
Block a user