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

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

KVM: x86 emulator: fix lea to really get the effective address



We never hit this, since there is currently no reason to emulate lea.

Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 16286d08
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1512,7 +1512,7 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
	case 0x88 ... 0x8b:	/* mov */
		goto mov;
	case 0x8d: /* lea r16/r32, m */
		c->dst.val = c->modrm_val;
		c->dst.val = c->modrm_ea;
		break;
	case 0x8f:		/* pop (sole member of Grp1a) */
		rc = emulate_grp1a(ctxt, ops);