Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b48cc75 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: x86 emulator: fix popf emulation



Set operand type and size to get correct writeback behavior.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent cf5de4f8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1552,7 +1552,9 @@ special_insn:
		emulate_push(ctxt);
		break;
	case 0x9d: /* popf */
		c->dst.type = OP_REG;
		c->dst.ptr = (unsigned long *) &ctxt->eflags;
		c->dst.bytes = c->op_bytes;
		goto pop_instruction;
	case 0xa0 ... 0xa1:	/* mov */
		c->dst.ptr = (unsigned long *)&c->regs[VCPU_REGS_RAX];