aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-04-02 08:51:46 -0400
committerAvi Kivity <avi@redhat.com>2009-06-10 04:48:38 -0400
commit2d033196541959d91802d5a62e63771448101557 (patch)
tree5bbbd5a8082279186439e5011e1db08d327368a8 /arch
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')
-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:
1792 } 1792 }
1793 c->src.val = (unsigned long) c->eip; 1793 c->src.val = (unsigned long) c->eip;
1794 jmp_rel(c, rel); 1794 jmp_rel(c, rel);
1795 c->op_bytes = c->ad_bytes;
1796 emulate_push(ctxt); 1795 emulate_push(ctxt);
1797 break; 1796 break;
1798 } 1797 }