commit | 0adc8675d645940139d12477e5e05b8a0a7a1117 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@qumranet.com> | Sun Jun 15 22:45:54 2008 -0700 |
committer | Avi Kivity <avi@qumranet.com> | Sun Jul 20 12:42:34 2008 +0300 |
tree | 87605d1c7b12da3fb6caf2fd96ae82f863c09883 | |
parent | f5b4edcd52e78556800f90d08bfc9126416ac82f [diff] |
KVM: x86 emulator: avoid segment base adjust for lea Signed-off-by: Avi Kivity <avi@qumranet.com>
diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c index 20b6044..38926b7 100644 --- a/arch/x86/kvm/x86_emulate.c +++ b/arch/x86/kvm/x86_emulate.c
@@ -940,7 +940,7 @@ 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)