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

Commit 2d033196 authored by Gleb Natapov's avatar Gleb Natapov Committed by Avi Kivity
Browse files

KVM: x86 emulator: fix call near emulation



The length of pushed on to the stack return address depends on operand
size not address size.

Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 4c26b4cd
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1792,7 +1792,6 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
		}
		c->src.val = (unsigned long) c->eip;
		jmp_rel(c, rel);
		c->op_bytes = c->ad_bytes;
		emulate_push(ctxt);
		break;
	}