Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356922
b: refs/heads/master
c: f583c29
h: refs/heads/master
v: v3
  • Loading branch information
Gleb Natapov committed Feb 13, 2013
1 parent 3430e48 commit d1d04f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: 7a905b1485adf863607b5fc9e32a3fa3838bcc23
refs/heads/master: f583c29b7913fa32b0b1b7f43038d6a7d9f71b6f
13 changes: 5 additions & 8 deletions trunk/arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -2995,14 +2995,11 @@ static int em_aad(struct x86_emulate_ctxt *ctxt)

ctxt->dst.val = (ctxt->dst.val & 0xffff0000) | al;

ctxt->eflags &= ~(X86_EFLAGS_PF | X86_EFLAGS_SF | X86_EFLAGS_ZF);

if (!al)
ctxt->eflags |= X86_EFLAGS_ZF;
if (!(al & 1))
ctxt->eflags |= X86_EFLAGS_PF;
if (al & 0x80)
ctxt->eflags |= X86_EFLAGS_SF;
/* Set PF, ZF, SF */
ctxt->src.type = OP_IMM;
ctxt->src.val = 0;
ctxt->src.bytes = 1;
fastop(ctxt, em_or);

return X86EMUL_CONTINUE;
}
Expand Down

0 comments on commit d1d04f4

Please sign in to comment.