Home
last modified time | relevance | path

Searched refs:memaddr (Results 1 – 25 of 45) sorted by relevance

12

/toolchain/binutils/binutils-2.25/opcodes/
Dm10300-dis.c32 disassemble (bfd_vma memaddr, in disassemble() argument
115 status = (*info->read_memory_func) (memaddr + 1, buffer, 2, info); in disassemble()
118 (*info->memory_error_func) (status, memaddr, info); in disassemble()
139 status = (*info->read_memory_func) (memaddr + 2, buffer, 2, info); in disassemble()
142 (*info->memory_error_func) (status, memaddr, info); in disassemble()
153 status = (*info->read_memory_func) (memaddr + 1, buffer, 4, info); in disassemble()
156 (*info->memory_error_func) (status, memaddr, info); in disassemble()
167 status = (*info->read_memory_func) (memaddr + 2, buffer, 2, info); in disassemble()
170 (*info->memory_error_func) (status, memaddr, info); in disassemble()
176 status = (*info->read_memory_func) (memaddr + 4, buffer, 1, info); in disassemble()
[all …]
Dpdp11-dis.c38 read_word (bfd_vma memaddr, int *word, disassemble_info *info) in read_word() argument
43 status = (*info->read_memory_func) (memaddr, x, 2, info); in read_word()
83 print_operand (bfd_vma *memaddr, int code, disassemble_info *info) in print_operand() argument
104 if (read_word (*memaddr, &data, info) < 0) in print_operand()
108 *memaddr += 2; in print_operand()
122 if (read_word (*memaddr, &address, info) < 0) in print_operand()
125 *memaddr += 2; in print_operand()
146 if (read_word (*memaddr, &disp, info) < 0) in print_operand()
148 *memaddr += 2; in print_operand()
151 bfd_vma address = *memaddr + sign_extend (disp); in print_operand()
[all …]
Dm10200-dis.c28 disassemble (bfd_vma memaddr, in disassemble() argument
142 ((value + memaddr + mysize) & 0xffffff, info); in disassemble()
161 print_insn_mn10200 (bfd_vma memaddr, struct disassemble_info *info) in print_insn_mn10200() argument
170 status = (*info->read_memory_func) (memaddr, buffer, 1, info); in print_insn_mn10200()
173 (*info->memory_error_func) (status, memaddr, info); in print_insn_mn10200()
217 status = (*info->read_memory_func) (memaddr, buffer, 2, info); in print_insn_mn10200()
220 (*info->memory_error_func) (status, memaddr, info); in print_insn_mn10200()
239 status = (*info->read_memory_func) (memaddr + 1, buffer, 2, info); in print_insn_mn10200()
242 (*info->memory_error_func) (status, memaddr, info); in print_insn_mn10200()
254 status = (*info->read_memory_func) (memaddr + 1, buffer, 2, info); in print_insn_mn10200()
[all …]
Dm68hc11-dis.c55 read_memory (bfd_vma memaddr, bfd_byte* buffer, int size, in read_memory() argument
62 status = (*info->read_memory_func) (memaddr, buffer, size, info); in read_memory()
65 (*info->memory_error_func) (status, memaddr, info); in read_memory()
75 print_indexed_operand (bfd_vma memaddr, struct disassemble_info* info, in print_indexed_operand() argument
88 status = read_memory (memaddr, &buffer[0], 1, info); in print_indexed_operand()
151 status = read_memory (memaddr + pos, &buffer[0], 2, info); in print_indexed_operand()
176 status = read_memory (memaddr + pos, in print_indexed_operand()
235 print_insn (bfd_vma memaddr, struct disassemble_info* info, int arch) in print_insn() argument
248 status = read_memory (memaddr, buffer, 2, info); in print_insn()
299 (*info->print_address_func) (memaddr + (val << 1) + 2, info); in print_insn()
[all …]
Dsh64-dis.c177 print_insn_shmedia (bfd_vma memaddr, struct disassemble_info *info) in print_insn_shmedia() argument
191 status = info->read_memory_func (memaddr, insn, 4, info); in print_insn_shmedia()
199 status = info->read_memory_func (memaddr + i, insn, 1, info); in print_insn_shmedia()
366 disp_pc_addr = (bfd_vma) imm + memaddr; in print_insn_shmedia()
447 sh64_get_contents_type_disasm (bfd_vma memaddr, struct disassemble_info *info) in sh64_get_contents_type_disasm() argument
454 && memaddr >= sh64_infop->crange.cr_addr in sh64_get_contents_type_disasm()
455 && memaddr < sh64_infop->crange.cr_addr + sh64_infop->crange.cr_size) in sh64_get_contents_type_disasm()
463 = sh64_get_contents_type (info->section, memaddr, in sh64_get_contents_type_disasm()
478 memaddr, &sh64_infop->crange); in sh64_get_contents_type_disasm()
495 return (memaddr & 1) == 1 ? CRT_SH5_ISA32 : CRT_SH5_ISA16; in sh64_get_contents_type_disasm()
[all …]
Dmcore-dis.c91 print_insn_mcore (memaddr, info) in print_insn_mcore() argument
92 bfd_vma memaddr; in print_insn_mcore()
104 status = info->read_memory_func (memaddr, ibytes, 2, info);
108 info->memory_error_func (status, memaddr, info);
204 (*print_func) (stream, "\t0x%lx", (long)(memaddr + 2 + (val << 1)));
209 val = memaddr + 2 + (val << 1);
226 (long) (memaddr - (val << 1)));
234 val = (memaddr + 2 + ((inst & 0xFF) << 2)) & 0xFFFFFFFC;
239 info->memory_error_func (status, memaddr, info);
255 (long) (memaddr + 2
[all …]
Dv850-dis.c90 bfd_vma memaddr, in print_value() argument
96 bfd_vma addr = value + memaddr; in print_value()
99 addr = memaddr - value; in print_value()
135 bfd_vma memaddr, in get_operand_value() argument
146 int status = info->read_memory_func (memaddr + bytes_read, buffer, 2, info); in get_operand_value()
161 info->memory_error_func (status, memaddr + bytes_read, info); in get_operand_value()
168 int status = info->read_memory_func (memaddr + 2, buffer, 4, info); in get_operand_value()
180 info->memory_error_func (status, memaddr + bytes_read, info); in get_operand_value()
187 int status = info->read_memory_func (memaddr + bytes_read, buffer, 4, info); in get_operand_value()
198 info->memory_error_func (status, memaddr + bytes_read, info); in get_operand_value()
[all …]
Dtic80-dis.c105 bfd_vma memaddr) in print_operand() argument
119 (*info->print_address_func) (memaddr + 4 * value, info); in print_operand()
153 bfd_vma memaddr, in fill_instruction() argument
160 status = (*info->read_memory_func) (memaddr + length, buffer, 4, info); in fill_instruction()
163 (*info->memory_error_func) (status, memaddr, info); in fill_instruction()
188 bfd_vma memaddr, in print_one_instruction() argument
210 status = fill_instruction (info, memaddr, (unsigned long *) &value); in print_one_instruction()
238 print_operand (info, value, insn, operand, memaddr); in print_one_instruction()
259 bfd_vma memaddr, in print_instruction() argument
288 length = print_one_instruction (info, memaddr, insn, opcode); in print_instruction()
[all …]
Di960-dis.c52 print_insn_i960 (bfd_vma memaddr, struct disassemble_info *info_arg) in print_insn_i960() argument
64 status = (*info->read_memory_func) (memaddr, (bfd_byte *) buffer, 4, info); in print_insn_i960()
67 (*info->memory_error_func) (status, memaddr, info); in print_insn_i960()
85 (memaddr + 4, (bfd_byte *) (buffer + 4), 4, info); in print_insn_i960()
88 (*info->memory_error_func) (status, memaddr, info); in print_insn_i960()
95 return pinsn( memaddr, word1, word2 ); in print_insn_i960()
120 pinsn (bfd_vma memaddr, unsigned long word1, unsigned long word2) in pinsn() argument
132 ctrl (memaddr, word1, word2); in pinsn()
136 cobr (memaddr, word1, word2); in pinsn()
148 instr_len = mem (memaddr, word1, word2, 0); in pinsn()
[all …]
Dd10v-dis.c34 bfd_vma memaddr, in print_operand() argument
129 (*info->print_address_func) ((memaddr - num) & PC_MASK, info); in print_operand()
131 (*info->print_address_func) ((memaddr + num) & PC_MASK, info); in print_operand()
152 bfd_vma memaddr, in dis_long() argument
174 print_operand (oper, insn, op, memaddr, info); in dis_long()
194 bfd_vma memaddr, in dis_2_short() argument
224 print_operand (oper, ins[j], op, memaddr, info); in dis_2_short()
266 print_insn_d10v (bfd_vma memaddr, struct disassemble_info *info) in print_insn_d10v() argument
272 status = (*info->read_memory_func) (memaddr, buffer, 4, info); in print_insn_d10v()
275 (*info->memory_error_func) (status, memaddr, info); in print_insn_d10v()
[all …]
Ddis-buf.c29 buffer_read_memory (bfd_vma memaddr, in buffer_read_memory() argument
37 unsigned int octets = (memaddr - info->buffer_vma) * opb; in buffer_read_memory()
39 if (memaddr < info->buffer_vma in buffer_read_memory()
40 || memaddr - info->buffer_vma > max_addr_offset in buffer_read_memory()
41 || memaddr - info->buffer_vma + end_addr_offset > max_addr_offset) in buffer_read_memory()
54 bfd_vma memaddr, in perror_memory() argument
66 sprintf_vma (buf, memaddr); in perror_memory()
Dtilepro-dis.c37 bfd_vma memaddr, in contains_insn() argument
46 if ((*info->read_memory_func) (memaddr, opbuf, in contains_insn()
53 num_instructions = parse_insn_tilepro (bfd_getl64 (opbuf), memaddr, decoded); in contains_insn()
80 print_insn_tilepro (bfd_vma memaddr, disassemble_info *info) in print_insn_tilepro() argument
88 status = (*info->read_memory_func) (memaddr, opbuf, in print_insn_tilepro()
92 (*info->memory_error_func) (status, memaddr, info); in print_insn_tilepro()
102 num_instructions = parse_insn_tilepro (bfd_getl64 (opbuf), memaddr, decoded); in print_insn_tilepro()
182 memaddr - TILEPRO_BUNDLE_SIZE_IN_BYTES, in print_insn_tilepro()
195 memaddr - TILEPRO_BUNDLE_SIZE_IN_BYTES, in print_insn_tilepro()
Dmips-dis.c1706 print_insn_mips (bfd_vma memaddr, in print_insn_mips() argument
1805 memaddr, 4); in print_insn_mips()
1826 char type, bfd_vma memaddr, in print_mips16_insn_arg() argument
1961 baseaddr = memaddr + 2; in print_mips16_insn_arg()
1968 baseaddr = memaddr - 2; in print_mips16_insn_arg()
1980 if (info->read_memory_func (memaddr - 4, buffer, 2, info) == 0 in print_mips16_insn_arg()
1985 baseaddr = memaddr - 4; in print_mips16_insn_arg()
1986 else if (info->read_memory_func (memaddr - 2, buffer, 2, in print_mips16_insn_arg()
1992 baseaddr = memaddr - 2; in print_mips16_insn_arg()
1994 baseaddr = memaddr; in print_mips16_insn_arg()
[all …]
Dd30v-dis.c119 bfd_vma memaddr, in print_insn() argument
283 (*info->print_address_func) ((memaddr - val) & PC_MASK, info); in print_insn()
289 (*info->print_address_func) ((memaddr + val) & PC_MASK, info); in print_insn()
322 print_insn_d30v (bfd_vma memaddr, struct disassemble_info *info) in print_insn_d30v() argument
336 status = (*info->read_memory_func) (memaddr, buffer, 4, info); in print_insn_d30v()
339 (*info->memory_error_func) (status, memaddr, info); in print_insn_d30v()
344 status = (*info->read_memory_func) (memaddr + 4, buffer, 4, info); in print_insn_d30v()
351 print_insn (info, memaddr, (long long) in1, &insn, 0, result); in print_insn_d30v()
365 print_insn (info, memaddr, num, &insn, 1, result); in print_insn_d30v()
373 print_insn (info, memaddr, num, &insn, 0, result); in print_insn_d30v()
[all …]
Dxtensa-dis.c50 fetch_data (struct disassemble_info *info, bfd_vma memaddr) in fetch_data() argument
63 status = (*info->read_memory_func) (memaddr, priv->byte_buf, length, in fetch_data()
68 (*info->memory_error_func) (status, memaddr, info); in fetch_data()
75 print_xtensa_operand (bfd_vma memaddr, in print_xtensa_operand() argument
101 &operand_val, memaddr); in print_xtensa_operand()
136 print_insn_xtensa (bfd_vma memaddr, struct disassemble_info *info) in print_insn_xtensa() argument
188 bytes_fetched = fetch_data (info, memaddr); in print_insn_xtensa()
255 print_xtensa_operand (memaddr, info, opc, i, operand_val); in print_insn_xtensa()
Di860-dis.c75 print_br_address (disassemble_info *info, bfd_vma memaddr, long val) in print_br_address() argument
78 long adj = (long)memaddr + 4 + (val << 2); in print_br_address()
94 print_insn_i860 (bfd_vma memaddr, disassemble_info *info) in print_insn_i860() argument
101 status = (*info->read_memory_func) (memaddr, buff, sizeof (buff), info); in print_insn_i860()
104 (*info->memory_error_func) (status, memaddr, info); in print_insn_i860()
268 print_br_address (info, memaddr, val); in print_insn_i860()
274 print_br_address (info, memaddr, val); in print_insn_i860()
Dxgate-dis.c62 print_insn (bfd_vma memaddr, struct disassemble_info* info) in print_insn() argument
112 status = read_memory (memaddr, buffer, XGATE_TWO_BYTES, info); in print_insn()
205 (*info->print_address_func)(memaddr + relAddr, info); in print_insn()
224 (*info->print_address_func)(memaddr + relAddr, info); in print_insn()
276 print_insn_xgate (bfd_vma memaddr, struct disassemble_info* info) in print_insn_xgate() argument
278 return print_insn (memaddr, info); in print_insn_xgate()
282 read_memory (bfd_vma memaddr, bfd_byte* buffer, int size, in read_memory() argument
286 status = (*info->read_memory_func) (memaddr, buffer, size, info); in read_memory()
289 (*info->memory_error_func) (status, memaddr, info); in read_memory()
Dw65-dis.c60 print_insn_w65 (bfd_vma memaddr, struct disassemble_info *info) in print_insn_w65() argument
75 status = info->read_memory_func (memaddr + i, insn + i, 1, info); in print_insn_w65()
88 int asR_W65_PCR8 = ((char) (asR_W65_ABS8)) + memaddr + 2; in print_insn_w65()
89 int asR_W65_PCR16 = ((short) (asR_W65_ABS16)) + memaddr + 3; in print_insn_w65()
Ds390-dis.c153 s390_print_insn_with_opcode (bfd_vma memaddr, in s390_print_insn_with_opcode() argument
192 info->print_address_func (memaddr + val.i + val.i, info); in s390_print_insn_with_opcode()
225 print_insn_s390 (bfd_vma memaddr, struct disassemble_info *info) in print_insn_s390() argument
240 status = info->read_memory_func (memaddr, buffer, 6, info); in print_insn_s390()
244 if (info->read_memory_func (memaddr, buffer, bufsize + 1, info) != 0) in print_insn_s390()
248 info->memory_error_func (status, memaddr, info); in print_insn_s390()
281 s390_print_insn_with_opcode (memaddr, info, buffer, opcode); in print_insn_s390()
Dcrx-dis.c500 print_arg (argument *a, bfd_vma memaddr, struct disassemble_info *info) in print_arg() argument
625 number = (relative ? memaddr : 0) in print_arg()
637 print_arguments (ins *currentInsn, bfd_vma memaddr, struct disassemble_info *info) in print_arguments() argument
645 print_arg (&currentInsn->arg[i], memaddr, info); in print_arguments()
685 get_word_at_PC (bfd_vma memaddr, struct disassemble_info *info) in get_word_at_PC() argument
691 status = info->read_memory_func (memaddr, buffer, 2, info); in get_word_at_PC()
702 get_words_at_PC (bfd_vma memaddr, struct disassemble_info *info) in get_words_at_PC() argument
707 for (i = 0, mem = memaddr; i < 3; i++, mem += 2) in get_words_at_PC()
717 print_insn_crx (memaddr, info) in print_insn_crx() argument
718 bfd_vma memaddr; in print_insn_crx()
[all …]
Dmicroblaze-dis.c167 read_insn_microblaze (bfd_vma memaddr, in read_insn_microblaze() argument
176 status = info->read_memory_func (memaddr, ibytes, 4, info); in read_insn_microblaze()
180 info->memory_error_func (status, memaddr, info); in read_insn_microblaze()
202 print_insn_microblaze (bfd_vma memaddr, struct disassemble_info * info) in print_insn_microblaze() argument
216 inst = read_insn_microblaze (memaddr, info, &op); in print_insn_microblaze()
222 if (memaddr-(info->bytes_per_chunk) == prev_insn_addr) in print_insn_microblaze()
241 prev_insn_addr = memaddr; in print_insn_microblaze()
316 immval += memaddr; in print_insn_microblaze()
342 immval += (int) memaddr; in print_insn_microblaze()
364 immval += (int) memaddr; in print_insn_microblaze()
Dppc-dis.c384 print_insn_big_powerpc (bfd_vma memaddr, struct disassemble_info *info) in print_insn_big_powerpc() argument
386 return print_insn_powerpc (memaddr, info, 1, get_powerpc_dialect (info)); in print_insn_big_powerpc()
392 print_insn_little_powerpc (bfd_vma memaddr, struct disassemble_info *info) in print_insn_little_powerpc() argument
394 return print_insn_powerpc (memaddr, info, 0, get_powerpc_dialect (info)); in print_insn_little_powerpc()
400 print_insn_rs6000 (bfd_vma memaddr, struct disassemble_info *info) in print_insn_rs6000() argument
402 return print_insn_powerpc (memaddr, info, 1, PPC_OPCODE_POWER); in print_insn_rs6000()
561 print_insn_powerpc (bfd_vma memaddr, in print_insn_powerpc() argument
572 status = (*info->read_memory_func) (memaddr, buffer, 4, info); in print_insn_powerpc()
580 status = (*info->read_memory_func) (memaddr, buffer, 2, info); in print_insn_powerpc()
583 (*info->memory_error_func) (status, memaddr, info); in print_insn_powerpc()
[all …]
Dalpha-dis.c57 print_insn_alpha (memaddr, info) in print_insn_alpha() argument
58 bfd_vma memaddr; in print_insn_alpha()
105 int status = (*info->read_memory_func) (memaddr, buffer, 4, info);
108 (*info->memory_error_func) (status, memaddr, info);
197 (*info->print_address_func) (memaddr + 4 + value, info);
Dia64-dis.c69 print_insn_ia64 (bfd_vma memaddr, struct disassemble_info *info) in print_insn_ia64() argument
88 slotnum = (((long) memaddr) & 0xf) / slot_multiplier; in print_insn_ia64()
92 memaddr -= (memaddr & 0xf); in print_insn_ia64()
93 status = (*info->read_memory_func) (memaddr, bundle, sizeof (bundle), info); in print_insn_ia64()
96 (*info->memory_error_func) (status, memaddr, info); in print_insn_ia64()
295 (*info->print_address_func) (memaddr + value, info); in print_insn_ia64()
Dspu-dis.c93 print_insn_spu (bfd_vma memaddr, struct disassemble_info *info) in print_insn_spu() argument
103 status = (*info->read_memory_func) (memaddr, buffer, 4, info); in print_insn_spu()
106 (*info->memory_error_func) (status, memaddr, info); in print_insn_spu()
195 (*info->print_address_func) (memaddr + DECODE_INSN_I9a (insn) * 4, in print_insn_spu()
199 (*info->print_address_func) (memaddr + DECODE_INSN_I9b (insn) * 4, in print_insn_spu()
225 hex_value = memaddr + value; in print_insn_spu()

12