Skip to content

Commit

Permalink
KVM: x86 emulator: remove useless label from x86_emulate_insn()
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Wei Yongjun authored and Avi Kivity committed Oct 24, 2010
1 parent ee45b58 commit c483c02
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -2787,16 +2787,12 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt)
c->eip = ctxt->eip;
}

if (c->src.type == OP_MEM) {
if (c->d & NoAccess)
goto no_fetch;
if ((c->src.type == OP_MEM) && !(c->d & NoAccess)) {
rc = read_emulated(ctxt, ops, c->src.addr.mem,
c->src.valptr, c->src.bytes);
if (rc != X86EMUL_CONTINUE)
goto done;
c->src.orig_val64 = c->src.val64;
no_fetch:
;
}

if (c->src2.type == OP_MEM) {
Expand Down

0 comments on commit c483c02

Please sign in to comment.