Lines Matching refs:cd
80 xstormy16_cgen_print_operand (CGEN_CPU_DESC cd, in xstormy16_cgen_print_operand() argument
93 print_keyword (cd, info, & xstormy16_cgen_opval_gr_Rb_names, fields->f_Rb, 0); in xstormy16_cgen_print_operand()
96 print_keyword (cd, info, & xstormy16_cgen_opval_gr_Rb_names, fields->f_Rbj, 0); in xstormy16_cgen_print_operand()
99 print_keyword (cd, info, & xstormy16_cgen_opval_gr_names, fields->f_Rd, 0); in xstormy16_cgen_print_operand()
102 print_keyword (cd, info, & xstormy16_cgen_opval_gr_names, fields->f_Rdm, 0); in xstormy16_cgen_print_operand()
105 print_keyword (cd, info, & xstormy16_cgen_opval_gr_names, fields->f_Rm, 0); in xstormy16_cgen_print_operand()
108 print_keyword (cd, info, & xstormy16_cgen_opval_gr_names, fields->f_Rs, 0); in xstormy16_cgen_print_operand()
111 …print_normal (cd, info, fields->f_abs24, 0|(1<<CGEN_OPERAND_ABS_ADDR)|(1<<CGEN_OPERAND_VIRTUAL), p… in xstormy16_cgen_print_operand()
114 print_keyword (cd, info, & xstormy16_cgen_opval_h_branchcond, fields->f_op2, 0); in xstormy16_cgen_print_operand()
117 print_keyword (cd, info, & xstormy16_cgen_opval_h_branchcond, fields->f_op5, 0); in xstormy16_cgen_print_operand()
120 print_normal (cd, info, fields->f_hmem8, 0|(1<<CGEN_OPERAND_ABS_ADDR), pc, length); in xstormy16_cgen_print_operand()
123 print_normal (cd, info, fields->f_imm12, 0|(1<<CGEN_OPERAND_SIGNED), pc, length); in xstormy16_cgen_print_operand()
126 print_normal (cd, info, fields->f_imm16, 0|(1<<CGEN_OPERAND_SIGN_OPT), pc, length); in xstormy16_cgen_print_operand()
129 print_normal (cd, info, fields->f_imm2, 0, pc, length); in xstormy16_cgen_print_operand()
132 print_normal (cd, info, fields->f_imm3, 0, pc, length); in xstormy16_cgen_print_operand()
135 print_normal (cd, info, fields->f_imm3b, 0, pc, length); in xstormy16_cgen_print_operand()
138 print_normal (cd, info, fields->f_imm4, 0, pc, length); in xstormy16_cgen_print_operand()
141 print_normal (cd, info, fields->f_imm8, 0, pc, length); in xstormy16_cgen_print_operand()
144 print_normal (cd, info, fields->f_imm8, 0, pc, length); in xstormy16_cgen_print_operand()
147 print_normal (cd, info, fields->f_lmem8, 0|(1<<CGEN_OPERAND_ABS_ADDR), pc, length); in xstormy16_cgen_print_operand()
150 print_normal (cd, info, fields->f_rel12, 0|(1<<CGEN_OPERAND_PCREL_ADDR), pc, length); in xstormy16_cgen_print_operand()
153 print_normal (cd, info, fields->f_rel12a, 0|(1<<CGEN_OPERAND_PCREL_ADDR), pc, length); in xstormy16_cgen_print_operand()
156 print_normal (cd, info, fields->f_rel8_2, 0|(1<<CGEN_OPERAND_PCREL_ADDR), pc, length); in xstormy16_cgen_print_operand()
159 print_normal (cd, info, fields->f_rel8_4, 0|(1<<CGEN_OPERAND_PCREL_ADDR), pc, length); in xstormy16_cgen_print_operand()
162 print_keyword (cd, info, & xstormy16_cgen_opval_h_wordsize, fields->f_op2m, 0); in xstormy16_cgen_print_operand()
180 xstormy16_cgen_init_dis (CGEN_CPU_DESC cd) in xstormy16_cgen_init_dis() argument
182 xstormy16_cgen_init_opcode_table (cd); in xstormy16_cgen_init_dis()
183 xstormy16_cgen_init_ibld_table (cd); in xstormy16_cgen_init_dis()
184 cd->print_handlers = & xstormy16_cgen_print_handlers[0]; in xstormy16_cgen_init_dis()
185 cd->print_operand = xstormy16_cgen_print_operand; in xstormy16_cgen_init_dis()
192 print_normal (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, in print_normal()
213 print_address (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, in print_address()
238 print_keyword (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, in print_keyword()
260 print_insn_normal (CGEN_CPU_DESC cd, in print_insn_normal() argument
271 CGEN_INIT_PRINT (cd); in print_insn_normal()
287 xstormy16_cgen_print_operand (cd, CGEN_SYNTAX_FIELD (*syn), info, in print_insn_normal()
297 read_insn (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED, in read_insn()
328 print_insn (CGEN_CPU_DESC cd, in print_insn() argument
340 basesize = cd->base_insn_bitsize < buflen * 8 ? in print_insn()
341 cd->base_insn_bitsize : buflen * 8; in print_insn()
342 insn_value = cgen_get_insn_value (cd, buf, basesize); in print_insn()
355 insn_list = CGEN_DIS_LOOKUP_INSN (cd, (char *) buf, insn_value); in print_insn()
366 if (! xstormy16_cgen_insn_supported (cd, insn)) in print_insn()
395 if (((unsigned) CGEN_INSN_BITSIZE (insn) > cd->base_insn_bitsize) && in print_insn()
399 int rc = read_insn (cd, pc, info, buf, in print_insn()
404 length = CGEN_EXTRACT_FN (cd, insn) in print_insn()
405 (cd, insn, &ex_info, full_insn_value, &fields, pc); in print_insn()
408 length = CGEN_EXTRACT_FN (cd, insn) in print_insn()
409 (cd, insn, &ex_info, insn_value_cropped, &fields, pc); in print_insn()
416 CGEN_PRINT_FN (cd, insn) (cd, info, insn, &fields, pc, length); in print_insn()
437 default_print_insn (CGEN_CPU_DESC cd, bfd_vma pc, disassemble_info *info) in default_print_insn() argument
444 buflen = cd->base_insn_bitsize / 8; in default_print_insn()
448 if (status != 0 && (cd->min_insn_bitsize < cd->base_insn_bitsize)) in default_print_insn()
450 buflen = cd->min_insn_bitsize / 8; in default_print_insn()
460 return print_insn (cd, pc, info, buf, buflen); in default_print_insn()
473 CGEN_CPU_DESC cd; member
481 static CGEN_CPU_DESC cd = 0; in print_insn_xstormy16() local
524 if (cd in print_insn_xstormy16()
529 cd = 0; in print_insn_xstormy16()
536 cd = cl->cd; in print_insn_xstormy16()
537 prev_isa = cd->isas; in print_insn_xstormy16()
544 if (! cd) in print_insn_xstormy16()
556 cd = xstormy16_cgen_cpu_open (CGEN_CPU_OPEN_ISAS, prev_isa, in print_insn_xstormy16()
560 if (!cd) in print_insn_xstormy16()
565 cl->cd = cd; in print_insn_xstormy16()
572 xstormy16_cgen_init_dis (cd); in print_insn_xstormy16()
580 length = CGEN_PRINT_INSN (cd, pc, info); in print_insn_xstormy16()
587 return cd->default_insn_bitsize / 8; in print_insn_xstormy16()