提交 2a738e20 编写于 作者: I Izik Eidus 提交者: Avi Kivity

KVM: x86 emulator: fix the saving of of the eip value

this make sure that no matter what is the operand size,
all the value of the eip will be saved
Signed-off-by: NIzik Eidus <izike@qumranet.com>
Signed-off-by: NAvi Kivity <avi@qumranet.com>
上级 e826ec9a
...@@ -1358,6 +1358,7 @@ x86_emulate_memop(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops) ...@@ -1358,6 +1358,7 @@ x86_emulate_memop(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
} }
src.val = (unsigned long) _eip; src.val = (unsigned long) _eip;
JMP_REL(rel); JMP_REL(rel);
op_bytes = ad_bytes;
goto push; goto push;
} }
case 0xe9: /* jmp rel */ case 0xe9: /* jmp rel */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部