Lines Matching refs:read_count
3521 uint8_t read_count, write_count; in X86_reg_access() local
3524 read_count = insn->detail->regs_read_count; in X86_reg_access()
3528 memcpy(regs_read, insn->detail->regs_read, read_count * sizeof(insn->detail->regs_read[0])); in X86_reg_access()
3536 if ((op->access & CS_AC_READ) && !arr_exist(regs_read, read_count, op->reg)) { in X86_reg_access()
3537 regs_read[read_count] = op->reg; in X86_reg_access()
3538 read_count++; in X86_reg_access()
3548 regs_read[read_count] = op->mem.segment; in X86_reg_access()
3549 read_count++; in X86_reg_access()
3551 if ((op->mem.base != X86_REG_INVALID) && !arr_exist(regs_read, read_count, op->mem.base)) { in X86_reg_access()
3552 regs_read[read_count] = op->mem.base; in X86_reg_access()
3553 read_count++; in X86_reg_access()
3555 if ((op->mem.index != X86_REG_INVALID) && !arr_exist(regs_read, read_count, op->mem.index)) { in X86_reg_access()
3556 regs_read[read_count] = op->mem.index; in X86_reg_access()
3557 read_count++; in X86_reg_access()
3564 *regs_read_count = read_count; in X86_reg_access()