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

Commit 0adc8675 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: x86 emulator: avoid segment base adjust for lea



Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent f5b4edcd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -940,7 +940,7 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
	    c->override_base != &ctxt->gs_base)
		c->override_base = NULL;

	if (c->override_base)
	if (c->override_base && !(!c->twobyte && c->b == 0x8d))
		c->modrm_ea += *c->override_base;

	if (c->ad_bytes != 8)