• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:platforms

66 	if (ins->detail == NULL)  in print_insn_detail()
69 ppc = &(ins->detail->ppc); in print_insn_detail()
70 if (ppc->op_count) in print_insn_detail()
71 printf("\top_count: %u\n", ppc->op_count); in print_insn_detail()
73 for (i = 0; i < ppc->op_count; i++) { in print_insn_detail()
74 cs_ppc_op *op = &(ppc->operands[i]); in print_insn_detail()
75 switch((int)op->type) { in print_insn_detail()
79 printf("\t\toperands[%u].type: REG = %s\n", i, cs_reg_name(handle, op->reg)); in print_insn_detail()
82 printf("\t\toperands[%u].type: IMM = 0x%" PRIx64 "\n", i, op->imm); in print_insn_detail()
86 if (op->mem.base != PPC_REG_INVALID) in print_insn_detail()
88 i, cs_reg_name(handle, op->mem.base)); in print_insn_detail()
89 if (op->mem.disp != 0) in print_insn_detail()
90 printf("\t\t\toperands[%u].mem.disp: 0x%x\n", i, op->mem.disp); in print_insn_detail()
95 printf("\t\t\toperands[%u].crx.scale: %d\n", i, op->crx.scale); in print_insn_detail()
96 printf("\t\t\toperands[%u].crx.reg: %s\n", i, cs_reg_name(handle, op->crx.reg)); in print_insn_detail()
97 printf("\t\t\toperands[%u].crx.cond: %s\n", i, get_bc_name(op->crx.cond)); in print_insn_detail()
102 if (ppc->bc != 0) in print_insn_detail()
103 printf("\tBranch code: %u\n", ppc->bc); in print_insn_detail()
105 if (ppc->bh != 0) in print_insn_detail()
106 printf("\tBranch hint: %u\n", ppc->bh); in print_insn_detail()
108 if (ppc->update_cr0) in print_insn_detail()
109 printf("\tUpdate-CR0: True\n"); in print_insn_detail()
119 struct platform platforms[] = { in test() local
124 sizeof(PPC_CODE) - 1, in test()
125 "PPC-64", in test()
131 sizeof(PPC_CODE2) - 1, in test()
132 "PPC-64 + QPX", in test()
141 for (i = 0; i < sizeof(platforms)/sizeof(platforms[0]); i++) { in test()
142 cs_err err = cs_open(platforms[i].arch, platforms[i].mode, &handle); in test()
150 count = cs_disasm(handle, platforms[i].code, platforms[i].size, address, 0, &insn); in test()
155 printf("Platform: %s\n", platforms[i].comment); in test()
156 print_string_hex("Code:", platforms[i].code, platforms[i].size); in test()
163 printf("0x%" PRIx64 ":\n", insn[j-1].address + insn[j-1].size); in test()
169 printf("Platform: %s\n", platforms[i].comment); in test()
170 print_string_hex("Code:", platforms[i].code, platforms[i].size); in test()