]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 ca91749d2083ff71a44b66f4253bda00dff7f4b3..d7c9f6fd0d34ef10e2d7469e6983d0519ecd43f4 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;
        }