xcore: increase op_count in set_mem_access() only on register operand. bug reported by Ben Nagy
This commit is contained in:
parent
968ec56c93
commit
22bc86f4fe
|
@ -182,9 +182,9 @@ static void set_mem_access(MCInst *MI, bool status, int reg)
|
|||
} else {
|
||||
if (reg) {
|
||||
MI->flat_insn->detail->xcore.operands[MI->flat_insn->detail->xcore.op_count].mem.index = reg;
|
||||
// done, create the next operand slot
|
||||
MI->flat_insn->detail->xcore.op_count++;
|
||||
}
|
||||
// done, create the next operand slot
|
||||
MI->flat_insn->detail->xcore.op_count++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue