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

Commit 2a738e20 authored by Izik Eidus's avatar Izik Eidus Committed by Avi Kivity
Browse files

KVM: x86 emulator: fix the saving of of the eip value



this make sure that no matter what is the operand size,
all the value of the eip will be saved

Signed-off-by: default avatarIzik Eidus <izike@qumranet.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent e826ec9a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1358,6 +1358,7 @@ x86_emulate_memop(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
		}
		src.val = (unsigned long) _eip;
		JMP_REL(rel);
		op_bytes = ad_bytes;
		goto push;
	}
	case 0xe9: /* jmp rel */