Skip to content

Commit

Permalink
x86: fix operand access of CMP in capstone-engine#1253
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Oct 2, 2018
1 parent fbeffa4 commit fc8ba23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/X86/X86MappingInsnOp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1799,15 +1799,15 @@
},
{ /* X86_CMP8mi, X86_INS_CMP: cmp{b} $dst, $src */
X86_EFLAGS_MODIFY_OF | X86_EFLAGS_MODIFY_SF | X86_EFLAGS_MODIFY_ZF | X86_EFLAGS_MODIFY_AF | X86_EFLAGS_MODIFY_PF | X86_EFLAGS_MODIFY_CF,
{ CS_AC_READ | CS_AC_WRITE, CS_AC_IGNORE, 0 }
{ CS_AC_READ, CS_AC_IGNORE, 0 }
},
{ /* X86_CMP8mi8, X86_INS_CMP: cmp{b} $dst, $src */
X86_EFLAGS_MODIFY_OF | X86_EFLAGS_MODIFY_SF | X86_EFLAGS_MODIFY_ZF | X86_EFLAGS_MODIFY_AF | X86_EFLAGS_MODIFY_PF | X86_EFLAGS_MODIFY_CF,
{ CS_AC_READ | CS_AC_WRITE, CS_AC_IGNORE, 0 }
{ CS_AC_READ, CS_AC_IGNORE, 0 }
},
{ /* X86_CMP8mr, X86_INS_CMP: cmp{b} $dst, $src */
X86_EFLAGS_MODIFY_OF | X86_EFLAGS_MODIFY_SF | X86_EFLAGS_MODIFY_ZF | X86_EFLAGS_MODIFY_AF | X86_EFLAGS_MODIFY_PF | X86_EFLAGS_MODIFY_CF,
{ CS_AC_READ | CS_AC_WRITE, CS_AC_READ, 0 }
{ CS_AC_READ, CS_AC_READ, 0 }
},
{ /* X86_CMP8ri, X86_INS_CMP: cmp{b} $src1, $src2 */
X86_EFLAGS_MODIFY_OF | X86_EFLAGS_MODIFY_SF | X86_EFLAGS_MODIFY_ZF | X86_EFLAGS_MODIFY_AF | X86_EFLAGS_MODIFY_PF | X86_EFLAGS_MODIFY_CF,
Expand Down

0 comments on commit fc8ba23

Please sign in to comment.