Populate PowerPC slwi/srwi instruction details with SH operand.

_v3_old
Peter Mackay 10 years ago
parent c00bc2efb6
commit 4e732c7db4
  1. 8
      arch/PowerPC/PPCInstPrinter.c

@ -112,6 +112,14 @@ void PPC_printInst(MCInst *MI, SStream *O, void *Info)
else
SStream_concat(O, ", %u", (unsigned int)SH);
if (MI->csh->detail) {
cs_ppc *ppc = &MI->flat_insn->detail->ppc;
ppc->operands[ppc->op_count].type = PPC_OP_IMM;
ppc->operands[ppc->op_count].imm = SH;
++ppc->op_count;
}
return;
}
}

Loading…
Cancel
Save