Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215729
b: refs/heads/master
c: c483c02
h: refs/heads/master
i:
  215727: 7b1315d
v: v3
  • Loading branch information
Wei Yongjun authored and Avi Kivity committed Oct 24, 2010
1 parent 78dde5b commit 7a59cc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ee45b58efebc826ea2ade310f6e311702d4a5ab9
refs/heads/master: c483c02ad35256206d6c45d7170fef1e33a43e9c
6 changes: 1 addition & 5 deletions trunk/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 7a59cc1

Please sign in to comment.