Add post_index to arm

This commit is contained in:
ζeh Matt 2022-11-22 22:25:08 +02:00
parent f6bfc9fbe4
commit 6d6debeae2
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
2 changed files with 7 additions and 3 deletions

View File

@ -318,7 +318,8 @@ void ARM_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci)
case ARM_t2STRD_PRE:
case ARM_t2STRH_PRE:
case ARM_t2STR_PRE:
insn->detail->arm.writeback = true;
break;
case ARM_t2LDC2L_POST:
case ARM_t2LDC2_POST:
case ARM_t2LDCL_POST:
@ -341,6 +342,7 @@ void ARM_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci)
case ARM_t2STRH_POST:
case ARM_t2STR_POST:
insn->detail->arm.writeback = true;
insn->detail->arm.post_index = true;
break;
}
} else { // ARM mode
@ -366,7 +368,8 @@ void ARM_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci)
case ARM_STRD_PRE:
case ARM_STRH_PRE:
insn->detail->arm.writeback = true;
break;
case ARM_LDC2L_POST:
case ARM_LDC2_POST:
case ARM_LDCL_POST:
@ -394,8 +397,8 @@ void ARM_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci)
case ARM_STR_POST_IMM:
case ARM_STR_POST_REG:
insn->detail->arm.writeback = true;
insn->detail->arm.post_index = true;
break;
}
}

View File

@ -446,6 +446,7 @@ typedef struct cs_arm {
arm_cc cc; ///< conditional code for this insn
bool update_flags; ///< does this insn update flags?
bool writeback; ///< does this insn write-back?
bool post_index; ///< only set if writeback is 'True', if 'False' pre-index, otherwise post.
arm_mem_barrier mem_barrier; ///< Option for some memory barrier instructions
/// Number of operands of this instruction,