Skip to content

Commit

Permalink
X86: X86_insn_reg_att uses a wrong mapping array of Intel syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Feb 21, 2019
1 parent 211a2eb commit de952a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/X86/X86Mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -3068,8 +3068,8 @@ x86_reg X86_insn_reg_att(unsigned int id, enum cs_ac_type *access)

for (i = 0; i < ARR_SIZE(insn_regs_att); i++) {
if (insn_regs_att[i].insn == id) {
if (access)
*access = insn_regs_intel[i].access;
if (access)
*access = insn_regs_att[i].access;
return insn_regs_att[i].reg;
}
}
Expand Down

0 comments on commit de952a3

Please sign in to comment.