Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248019
b: refs/heads/master
c: a0c0ab2
h: refs/heads/master
i:
  248017: 3f53771
  248015: d8bda87
v: v3
  • Loading branch information
Gleb Natapov authored and Avi Kivity committed May 11, 2011
1 parent 800677c commit 9041cff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 0be839bfb4b12f17fba2d982353b0f674e327f9e
refs/heads/master: a0c0ab2feb9d696978a7475dce4253ec62e98a16
6 changes: 3 additions & 3 deletions trunk/arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -2287,7 +2287,7 @@ int emulator_task_switch(struct x86_emulate_ctxt *ctxt,
ctxt->eip = c->eip;
}

return (rc == X86EMUL_UNHANDLEABLE) ? -1 : 0;
return (rc == X86EMUL_UNHANDLEABLE) ? EMULATION_FAILED : EMULATION_OK;
}

static void string_addr_inc(struct x86_emulate_ctxt *ctxt, unsigned seg,
Expand Down Expand Up @@ -3333,7 +3333,7 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len)
}

done:
return (rc == X86EMUL_UNHANDLEABLE) ? -1 : 0;
return (rc == X86EMUL_UNHANDLEABLE) ? EMULATION_FAILED : EMULATION_OK;
}

static bool string_insn_completed(struct x86_emulate_ctxt *ctxt)
Expand Down Expand Up @@ -4163,5 +4163,5 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt)
goto writeback;

cannot_emulate:
return -1;
return EMULATION_FAILED;
}

0 comments on commit 9041cff

Please sign in to comment.