summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-04-02 15:51:46 +0300
committerAvi Kivity <avi@redhat.com>2009-04-05 15:41:37 +0300
commite3dbe3f408a46a045012f1882e9f62b27b8a616c (patch)
tree3b02d1797bb57c4ab3a8dc5f34d881fd7a7fc862
parent5a29c51c0208e5adba54773c83fcb169d5a8040b (diff)
KVM: x86 emulator: fix call near emulationkvm-85rc3
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>
-rw-r--r--arch/x86/kvm/x86_emulate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c
index ca91749d2083..d7c9f6fd0d34 100644
--- a/arch/x86/kvm/x86_emulate.c
+++ b/arch/x86/kvm/x86_emulate.c
@@ -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;
}