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

Commit cf5de4f8 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: x86 emulator: fix ret emulation



'ret' did not set the operand type or size for the destination, so
writeback ignored it.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 8a09b687
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1650,7 +1650,9 @@ special_insn:
		emulate_grp2(ctxt);
		break;
	case 0xc3: /* ret */
		c->dst.type = OP_REG;
		c->dst.ptr = &c->eip;
		c->dst.bytes = c->op_bytes;
		goto pop_instruction;
	case 0xc6 ... 0xc7:	/* mov (sole member of Grp11) */
	mov: