]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: x86 emulator: avoid segment base adjust for lea
authorAvi Kivity <avi@qumranet.com>
Mon, 16 Jun 2008 05:45:54 +0000 (22:45 -0700)
committerAvi Kivity <avi@qumranet.com>
Sun, 20 Jul 2008 09:42:34 +0000 (12:42 +0300)
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86_emulate.c

index 20b604489c3cd7d76799a7a2453b44bc9b9bd4dc..38926b7da64a96cf25271d780712095888de1173 100644 (file)
@@ -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)