arm: another fix for #913

This commit is contained in:
Nguyen Anh Quynh 2017-05-05 09:53:29 +08:00
parent fdca2f7cf8
commit 663b210cb7
1 changed files with 1 additions and 1 deletions

View File

@ -688,7 +688,7 @@ void ARM_printInst(MCInst *MI, SStream *O, void *Info)
if (MI->csh->detail) {
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_REG;
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].reg = MCOperand_getReg(MCInst_getOperand(MI, 0));
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].access = CS_AC_READ;
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].access = CS_AC_WRITE;
MI->flat_insn->detail->arm.op_count++;
// this instruction implicitly read/write SP register
MI->flat_insn->detail->regs_read[MI->flat_insn->detail->regs_read_count] = ARM_REG_SP;