Add post_index to arm
This commit is contained in:
parent
07dc1f2566
commit
1249f05c49
|
@ -318,7 +318,8 @@ void ARM_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci)
|
||||||
case ARM_t2STRD_PRE:
|
case ARM_t2STRD_PRE:
|
||||||
case ARM_t2STRH_PRE:
|
case ARM_t2STRH_PRE:
|
||||||
case ARM_t2STR_PRE:
|
case ARM_t2STR_PRE:
|
||||||
|
insn->detail->arm.writeback = true;
|
||||||
|
break;
|
||||||
case ARM_t2LDC2L_POST:
|
case ARM_t2LDC2L_POST:
|
||||||
case ARM_t2LDC2_POST:
|
case ARM_t2LDC2_POST:
|
||||||
case ARM_t2LDCL_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_t2STRH_POST:
|
||||||
case ARM_t2STR_POST:
|
case ARM_t2STR_POST:
|
||||||
insn->detail->arm.writeback = true;
|
insn->detail->arm.writeback = true;
|
||||||
|
insn->detail->arm.post_index = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else { // ARM mode
|
} 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_STRD_PRE:
|
||||||
case ARM_STRH_PRE:
|
case ARM_STRH_PRE:
|
||||||
|
insn->detail->arm.writeback = true;
|
||||||
|
break;
|
||||||
case ARM_LDC2L_POST:
|
case ARM_LDC2L_POST:
|
||||||
case ARM_LDC2_POST:
|
case ARM_LDC2_POST:
|
||||||
case ARM_LDCL_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_IMM:
|
||||||
case ARM_STR_POST_REG:
|
case ARM_STR_POST_REG:
|
||||||
|
|
||||||
insn->detail->arm.writeback = true;
|
insn->detail->arm.writeback = true;
|
||||||
|
insn->detail->arm.post_index = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -446,6 +446,7 @@ typedef struct cs_arm {
|
||||||
arm_cc cc; ///< conditional code for this insn
|
arm_cc cc; ///< conditional code for this insn
|
||||||
bool update_flags; ///< does this insn update flags?
|
bool update_flags; ///< does this insn update flags?
|
||||||
bool writeback; ///< does this insn write-back?
|
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
|
arm_mem_barrier mem_barrier; ///< Option for some memory barrier instructions
|
||||||
|
|
||||||
/// Number of operands of this instruction,
|
/// Number of operands of this instruction,
|
||||||
|
|
Loading…
Reference in New Issue