Skip to content

Commit

Permalink
Fix WRTE typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed May 16, 2024
1 parent 9987b86 commit 4d3d33d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arch/HPPA/HPPAInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ static void fill_operands(MCInst *MI, cs_hppa *hppa)

case 'w':
set_op_reg(hppa, MCOperand_getReg(op),
CS_AC_READ_WRTE);
CS_AC_READ_WRITE);
break;

case 'r':
Expand Down Expand Up @@ -834,4 +834,4 @@ void HPPA_printInst(MCInst *MI, SStream *O, void *Info)
}
}

#endif
#endif
2 changes: 1 addition & 1 deletion cstool/cstool_powerpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void print_insn_detail_ppc(csh handle, cs_insn *ins)
case CS_AC_WRITE:
printf("\t\toperands[%u].access: WRITE\n", i);
break;
case CS_AC_READ_WRTE:
case CS_AC_READ_WRITE:
printf("\t\toperands[%u].access: READ | WRITE\n", i);
break;
}
Expand Down
2 changes: 1 addition & 1 deletion include/capstone/cs_operand.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ typedef enum cs_ac_type {
CS_AC_INVALID = 0, ///< Uninitialized/invalid access type.
CS_AC_READ = 1 << 0, ///< Operand read from memory or register.
CS_AC_WRITE = 1 << 1, ///< Operand write to memory or register.
CS_AC_READ_WRTE =
CS_AC_READ_WRITE =
CS_AC_READ |
CS_AC_WRITE, ///< Operand reads and writes from/to memory or register.
} cs_ac_type;
Expand Down

0 comments on commit 4d3d33d

Please sign in to comment.