summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-06-16 07:45:54 +0200
committerAvi Kivity <avi@qumranet.com>2008-07-20 11:42:34 +0200
commit0adc8675d645940139d12477e5e05b8a0a7a1117 (patch)
tree87605d1c7b12da3fb6caf2fd96ae82f863c09883 /arch
parentKVM: x86 emulator: simplify rip relative decoding (diff)
downloadlinux-0adc8675d645940139d12477e5e05b8a0a7a1117.tar.xz
linux-0adc8675d645940139d12477e5e05b8a0a7a1117.zip
KVM: x86 emulator: avoid segment base adjust for lea
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/x86_emulate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c
index 20b604489c3c..38926b7da64a 100644
--- a/arch/x86/kvm/x86_emulate.c
+++ b/arch/x86/kvm/x86_emulate.c
@@ -940,7 +940,7 @@ done_prefixes:
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)