OSDN Git Service

KVM: x86 emulator: fix call near emulation
authorGleb Natapov <gleb@redhat.com>
Thu, 2 Apr 2009 12:51:46 +0000 (15:51 +0300)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:38 +0000 (11:48 +0300)
The length of pushed on to the stack return address depends on operand
size not address size.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86_emulate.c

index ca91749..d7c9f6f 100644 (file)
@@ -1792,7 +1792,6 @@ special_insn:
                }
                c->src.val = (unsigned long) c->eip;
                jmp_rel(c, rel);
-               c->op_bytes = c->ad_bytes;
                emulate_push(ctxt);
                break;
        }