fixed incorrect MI->ac_idx leading to wrong AArch64 InsnOp access printing

This commit is contained in:
kabeor 2022-02-28 13:26:08 +08:00
parent aafdcace6c
commit bc4e264f40
1 changed files with 1 additions and 0 deletions

View File

@ -848,6 +848,7 @@ static void printOperand(MCInst *MI, unsigned OpNum, SStream *O)
access = get_op_access(MI->csh, MCInst_getOpcode(MI), OpNum);
MI->flat_insn->detail->arm64.operands[MI->flat_insn->detail->arm64.op_count].access = access;
MI->ac_idx++;
#endif
MI->flat_insn->detail->arm64.operands[MI->flat_insn->detail->arm64.op_count].type = ARM64_OP_REG;
MI->flat_insn->detail->arm64.operands[MI->flat_insn->detail->arm64.op_count].reg = Reg;