提交 cf5de4f8 编写于 作者: A Avi Kivity

KVM: x86 emulator: fix ret emulation

'ret' did not set the operand type or size for the destination, so
writeback ignored it.
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 8a09b687
...@@ -1650,7 +1650,9 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops) ...@@ -1650,7 +1650,9 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
emulate_grp2(ctxt); emulate_grp2(ctxt);
break; break;
case 0xc3: /* ret */ case 0xc3: /* ret */
c->dst.type = OP_REG;
c->dst.ptr = &c->eip; c->dst.ptr = &c->eip;
c->dst.bytes = c->op_bytes;
goto pop_instruction; goto pop_instruction;
case 0xc6 ... 0xc7: /* mov (sole member of Grp11) */ case 0xc6 ... 0xc7: /* mov (sole member of Grp11) */
mov: mov:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册