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>
This commit is contained in:
parent
4c26b4cd6f
commit
2d03319654
@ -1792,7 +1792,6 @@ special_insn:
|
|||||||
}
|
}
|
||||||
c->src.val = (unsigned long) c->eip;
|
c->src.val = (unsigned long) c->eip;
|
||||||
jmp_rel(c, rel);
|
jmp_rel(c, rel);
|
||||||
c->op_bytes = c->ad_bytes;
|
|
||||||
emulate_push(ctxt);
|
emulate_push(ctxt);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user