Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271519
b: refs/heads/master
c: caa8a16
h: refs/heads/master
i:
  271517: 5c292f2
  271515: 04d7397
  271511: f5215e1
  271503: 548e43f
  271487: ffecfe7
v: v3
  • Loading branch information
Avi Kivity committed Sep 25, 2011
1 parent 4f18ce8 commit b253839
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c61fa9d63b40b06522c5f1d940b084323a090688
refs/heads/master: caa8a168e35650961b9b0d43b9b6fc2279351949
4 changes: 4 additions & 0 deletions trunk/arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1670,6 +1670,8 @@ static int em_grp3(struct x86_emulate_ctxt *ctxt)
switch (ctxt->modrm_reg) {
case 0 ... 1: /* test */
emulate_2op_SrcV(ctxt, "test");
/* Disable writeback. */
ctxt->dst.type = OP_NONE;
break;
case 2: /* not */
ctxt->dst.val = ~ctxt->dst.val;
Expand Down Expand Up @@ -2513,6 +2515,8 @@ static int em_cmp(struct x86_emulate_ctxt *ctxt)
static int em_test(struct x86_emulate_ctxt *ctxt)
{
emulate_2op_SrcV(ctxt, "test");
/* Disable writeback. */
ctxt->dst.type = OP_NONE;
return X86EMUL_CONTINUE;
}

Expand Down

0 comments on commit b253839

Please sign in to comment.