mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-27 07:20:33 +00:00
Add post_index to arm
This commit is contained in:
parent
f6bfc9fbe4
commit
6d6debeae2
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user