aboutsummaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-04-02 15:51:46 +0300
committerAvi Kivity <avi@redhat.com>2009-06-10 11:48:38 +0300
commit2d033196541959d91802d5a62e63771448101557 (patch)
tree5bbbd5a8082279186439e5011e1db08d327368a8 /arch/x86
parent4c26b4cd6ff6c3f7534f2aea9615a561c372ed05 (diff)
KVM: x86 emulator: fix call near emulation
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>
Diffstat (limited to 'arch/x86')
-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 ca91749d208..d7c9f6fd0d3 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;
}