diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-04-02 12:51:46 (GMT) |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-06-10 08:48:38 (GMT) |
commit | 2d033196541959d91802d5a62e63771448101557 (patch) | |
tree | 5bbbd5a8082279186439e5011e1db08d327368a8 /arch/x86/kvm/x86_emulate.c | |
parent | 4c26b4cd6ff6c3f7534f2aea9615a561c372ed05 (diff) | |
download | linux-fsl-qoriq-2d033196541959d91802d5a62e63771448101557.tar.xz |
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/kvm/x86_emulate.c')
-rw-r--r-- | arch/x86/kvm/x86_emulate.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c index ca91749..d7c9f6f 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; } |