arm: correct operand setup for REG type in printAddrMode3OffsetOperand()

v2
Nguyen Anh Quynh 11 years ago
parent 2a461ed422
commit 8693fcdc99
  1. 2
      arch/ARM/ARMInstPrinter.c

@ -985,7 +985,7 @@ static void printAddrMode3OffsetOperand(MCInst *MI, unsigned OpNum, SStream *O)
printRegName(MI->csh, O, MCOperand_getReg(MO1));
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].imm = MCOperand_getReg(MO1);
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].reg = MCOperand_getReg(MO1);
MI->flat_insn->detail->arm.op_count++;
}
return;

Loading…
Cancel
Save