/haiku-fatelf/src/bin/gdb/include/opcode/ |
H A D | cgen.h | 60 /* Lots of cpu's have a fixed insn size, or one which rarely changes, 61 and it's generally easier to handle these by treating the insn as an 99 an object (ifield, hardware, operand, insn, whatever) and are specified 169 /* For each domain (ifld,hw,operand,insn), list of attributes. */ 185 This is used by the assembler when it encounters an unknown insn. */ 189 For non-LIW cpus this is generally the length of the smallest insn. 213 The result of parsing an insn is stored here. 214 To generate the actual insn, this is passed to the insert handler. 215 When printing an insn, the result of extraction is stored here. 216 To print the insn, thi 1049 const CGEN_INSN *insn; member in struct:cgen_insn_list [all...] |
/haiku-fatelf/src/bin/gdb/opcodes/ |
H A D | sh-dis.c | 110 /* Print a double data transfer insn. INSN is just the lower three 111 nibbles of the insn, i.e. field a and the bit that indicates if 112 a parallel processing insn follows. 116 print_insn_ddt (insn, info) 117 int insn; 124 if (insn == 0x000) 127 /* If a parallel processing insn was printed before, 129 if ((insn & 0x800) && (insn & 0x3ff)) 133 if (((insn 402 unsigned char insn[4]; local [all...] |
H A D | v850-dis.c | 49 disassemble (memaddr, info, insn) 52 unsigned long insn; 57 int short_op = ((insn & 0x0600) != 0x0600); 62 if ((insn & 0xffe0) == 0x0620) 67 /* If this is a two byte insn, then mask off the high bits. */ 69 insn &= 0xffff; 90 if ((op->mask & insn) == op->opcode 99 /*fprintf (stderr, "match: mask: %x insn: %x, opcode: %x, name: %s\n", op->mask, insn, op->opcode, op->name );*/ 127 value = (operand->extract) (insn, 357 unsigned long insn = 0; local [all...] |
H A D | v850-opc.c | 76 insert_d9 (insn, value, errmsg) 77 unsigned long insn; 91 return (insn | ((value & 0x1f0) << 7) | ((value & 0x0e) << 3)); 95 extract_d9 (insn, invalid) 96 unsigned long insn; 99 unsigned long ret = ((insn & 0xf800) >> 7) | ((insn & 0x0070) >> 3); 101 if ((insn & 0x8000) != 0) 108 insert_d22 (insn, value, errmsg) 109 unsigned long insn; [all...] |
H A D | ia64-dis.c | 71 ia64_insn t0, t1, slot[3], template, s_bit, insn; local 123 insn = slot[slotnum]; 128 idesc = ia64_dis_opcode (insn, unit_to_type (insn, unit)); 135 || (insn & 0x3f) == 0) 138 (*info->fprintf_func) (info->stream, "(p%02d) ", (int)(insn & 0x3f)); 157 value = ((insn >> 13) & 0x7f) | (((insn >> 27) & 0x1ff) << 7) 158 | (((insn >> 22) & 0x1f) << 16) | (((insn >> 2 [all...] |
H A D | cgen-dis.in | 137 /* Default insn printer. 145 const CGEN_INSN *insn, 150 const CGEN_SYNTAX *syntax = CGEN_INSN_SYNTAX (insn); 160 (*info->fprintf_func) (info->stream, "%s", CGEN_INSN_MNEMONIC (insn)); 171 fields, CGEN_INSN_ATTRS (insn), pc, length); 176 /* Subroutine of print_insn. Reads an insn into the given buffers and updates 204 /* Utility to print an insn. 205 BUF is the base part of the insn, target byte order, BUFLEN bytes long. 206 The result is the size of the insn in bytes or zero for an unknown insn [all...] |
H A D | a29k-dis.c | 109 find_bytes_big (insn, insn0, insn8, insn16, insn24) 110 char *insn; 116 *insn24 = insn[0]; 117 *insn16 = insn[1]; 118 *insn8 = insn[2]; 119 *insn0 = insn[3]; 123 find_bytes_little (insn, insn0, insn8, insn16, insn24) 124 char *insn; 130 *insn24 = insn[3]; 131 *insn16 = insn[ 149 char insn[4]; local [all...] |
H A D | cgen-opc.c | 364 /* Cover function to read and properly byteswap an insn value. */ 400 /* Cover function to store an insn value properly byteswapped. */ 439 INSN, if non-null, is the insn table entry. 442 0 is only valid if `insn == NULL && ! CGEN_INT_INSN_P'. 446 The result is a pointer to the insn table entry, or NULL if the instruction 453 const CGEN_INSN *insn, 483 if (!insn) 493 insn = insn_list->insn; 497 || ! CGEN_INSN_ATTR_VALUE (insn, CGEN_INSN_ALIA 448 cgen_lookup_insn(CGEN_CPU_DESC cd, const CGEN_INSN *insn, CGEN_INSN_INT insn_int_value, unsigned char *insn_bytes_value, int length, CGEN_FIELDS *fields, int alias_p) argument 545 cgen_get_insn_operands(CGEN_CPU_DESC cd, const CGEN_INSN *insn, const CGEN_FIELDS *fields, int *indices) argument 576 cgen_lookup_get_insn_operands(CGEN_CPU_DESC cd, const CGEN_INSN *insn, CGEN_INSN_INT insn_int_value, unsigned char *insn_bytes_value, int length, int *indices, CGEN_FIELDS *fields) argument [all...] |
H A D | fr30-asm.c | 361 fr30_cgen_build_insn_regex (CGEN_INSN *insn) 363 CGEN_OPCODE *opc = (CGEN_OPCODE *) CGEN_INSN_OPCODE (insn); 364 const char *mnem = CGEN_INSN_MNEMONIC (insn); 382 /* Copy the literal mnemonic out of the insn. */ 452 CGEN_INSN_RX (insn) = xmalloc (sizeof (regex_t)); 453 reg_err = regcomp ((regex_t *) CGEN_INSN_RX (insn), rxbuf, REG_NOSUB); 461 regerror (reg_err, (regex_t *) CGEN_INSN_RX (insn), msg, 80); 462 regfree ((regex_t *) CGEN_INSN_RX (insn)); 463 free (CGEN_INSN_RX (insn)); 464 (CGEN_INSN_RX (insn)) 359 fr30_cgen_build_insn_regex(CGEN_INSN *insn) argument 482 parse_insn_normal(CGEN_CPU_DESC cd, const CGEN_INSN *insn, const char **strp, CGEN_FIELDS *fields) argument 647 const CGEN_INSN *insn = ilist->insn; local [all...] |
H A D | m32r-asm.c | 376 m32r_cgen_build_insn_regex (CGEN_INSN *insn) 378 CGEN_OPCODE *opc = (CGEN_OPCODE *) CGEN_INSN_OPCODE (insn); 379 const char *mnem = CGEN_INSN_MNEMONIC (insn); 397 /* Copy the literal mnemonic out of the insn. */ 467 CGEN_INSN_RX (insn) = xmalloc (sizeof (regex_t)); 468 reg_err = regcomp ((regex_t *) CGEN_INSN_RX (insn), rxbuf, REG_NOSUB); 476 regerror (reg_err, (regex_t *) CGEN_INSN_RX (insn), msg, 80); 477 regfree ((regex_t *) CGEN_INSN_RX (insn)); 478 free (CGEN_INSN_RX (insn)); 479 (CGEN_INSN_RX (insn)) 374 m32r_cgen_build_insn_regex(CGEN_INSN *insn) argument 497 parse_insn_normal(CGEN_CPU_DESC cd, const CGEN_INSN *insn, const char **strp, CGEN_FIELDS *fields) argument 662 const CGEN_INSN *insn = ilist->insn; local [all...] |
H A D | mmix-dis.c | 153 get_opcode (insn) 154 unsigned long insn; 158 unsigned int opcode_part = (insn >> 24) & 255; 164 || (opcodep->match & insn) != opcodep->match 165 || (opcodep->lose & insn) != 0) 175 if ((opcodep->match & insn) == opcodep->match 176 && (opcodep->lose & insn) == 0) 215 int midbyte = (insn >> 8) & 255; 224 if ((insn & INSN_IMMEDIATE_BIT) 225 || ((insn >> 1 256 unsigned long insn; local [all...] |
H A D | openrisc-asm.c | 299 openrisc_cgen_build_insn_regex (CGEN_INSN *insn) 301 CGEN_OPCODE *opc = (CGEN_OPCODE *) CGEN_INSN_OPCODE (insn); 302 const char *mnem = CGEN_INSN_MNEMONIC (insn); 320 /* Copy the literal mnemonic out of the insn. */ 390 CGEN_INSN_RX (insn) = xmalloc (sizeof (regex_t)); 391 reg_err = regcomp ((regex_t *) CGEN_INSN_RX (insn), rxbuf, REG_NOSUB); 399 regerror (reg_err, (regex_t *) CGEN_INSN_RX (insn), msg, 80); 400 regfree ((regex_t *) CGEN_INSN_RX (insn)); 401 free (CGEN_INSN_RX (insn)); 402 (CGEN_INSN_RX (insn)) 297 openrisc_cgen_build_insn_regex(CGEN_INSN *insn) argument 420 parse_insn_normal(CGEN_CPU_DESC cd, const CGEN_INSN *insn, const char **strp, CGEN_FIELDS *fields) argument 585 const CGEN_INSN *insn = ilist->insn; local [all...] |
H A D | xstormy16-asm.c | 322 xstormy16_cgen_build_insn_regex (CGEN_INSN *insn) 324 CGEN_OPCODE *opc = (CGEN_OPCODE *) CGEN_INSN_OPCODE (insn); 325 const char *mnem = CGEN_INSN_MNEMONIC (insn); 343 /* Copy the literal mnemonic out of the insn. */ 413 CGEN_INSN_RX (insn) = xmalloc (sizeof (regex_t)); 414 reg_err = regcomp ((regex_t *) CGEN_INSN_RX (insn), rxbuf, REG_NOSUB); 422 regerror (reg_err, (regex_t *) CGEN_INSN_RX (insn), msg, 80); 423 regfree ((regex_t *) CGEN_INSN_RX (insn)); 424 free (CGEN_INSN_RX (insn)); 425 (CGEN_INSN_RX (insn)) 320 xstormy16_cgen_build_insn_regex(CGEN_INSN *insn) argument 443 parse_insn_normal(CGEN_CPU_DESC cd, const CGEN_INSN *insn, const char **strp, CGEN_FIELDS *fields) argument 608 const CGEN_INSN *insn = ilist->insn; local [all...] |
H A D | alpha-dis.c | 65 unsigned insn, op, isa_mask; local 102 /* Read the insn into a host word */ 111 insn = bfd_getl32 (buffer); 115 op = AXP_OP (insn); 121 if ((insn ^ opcode->opcode) & opcode->mask) 136 (*operand->extract) (insn, &invalid); 147 (*info->fprintf_func) (info->stream, ".long %#08x", insn); 171 value = (*operand->extract) (insn, (int *) NULL); 174 value = (insn >> operand->shift) & ((1 << operand->bits) - 1);
|
H A D | arc-ext.c | 112 struct ExtInstruction *insn; local 126 insn = arc_extension_map.instructions[i]; 127 if (insn) 128 free(insn->name); 182 struct ExtInstruction * insn = local 189 insn -> flags = (char) *(p+4); 191 insn -> name = insn_name; 192 arc_extension_map.instructions[(int) opcode] = insn;
|
H A D | iq2000-dis.c | 192 fprintf (stderr, _("Unrecognized field %d while printing insn.\n"), 290 /* Default insn printer. 298 const CGEN_INSN *insn, 303 const CGEN_SYNTAX *syntax = CGEN_INSN_SYNTAX (insn); 313 (*info->fprintf_func) (info->stream, "%s", CGEN_INSN_MNEMONIC (insn)); 324 fields, CGEN_INSN_ATTRS (insn), pc, length); 329 /* Subroutine of print_insn. Reads an insn into the given buffers and updates 357 /* Utility to print an insn. 358 BUF is the base part of the insn, target byte order, BUFLEN bytes long. 359 The result is the size of the insn i 293 print_insn_normal(CGEN_CPU_DESC cd, void *dis_info, const CGEN_INSN *insn, CGEN_FIELDS *fields, bfd_vma pc, int length) argument 390 const CGEN_INSN *insn = insn_list->insn; local [all...] |
/haiku-fatelf/src/bin/gdb/bfd/ |
H A D | coff-a29k.c | 88 unsigned long insn; local 130 insn = bfd_get_32 (abfd, hit_data); 132 signed_value = EXTRACT_HWORD(insn); 143 insn |= (1 << 24); /* Make it absolute */ 157 insn = INSERT_HWORD (insn, signed_value); 158 bfd_put_32 (abfd, (bfd_vma) insn ,hit_data); 161 insn = bfd_get_32 (abfd, hit_data); 162 unsigned_value = EXTRACT_HWORD(insn); 164 insn 351 unsigned long insn; local [all...] |
H A D | coff-or32.c | 95 unsigned long insn; local 139 insn = bfd_get_32(abfd, hit_data); 142 signed_value = EXTRACT_JUMPTARG (insn); 154 insn |= (1<<24); /* Make it absolute. */ 169 insn = INSERT_JUMPTARG (insn, signed_value); 170 bfd_put_32 (abfd, insn, hit_data); 174 insn = bfd_get_32 (abfd, hit_data); 175 unsigned_value = EXTRACT_HWORD (insn); 177 insn 384 unsigned long insn; local [all...] |
H A D | elf32-pj.c | 195 unsigned long insn; local 224 insn = bfd_get_32 (abfd, hit_data); 225 insn += sym_value + reloc_entry->addend; 226 bfd_put_32 (abfd, (bfd_vma) insn, hit_data); 233 insn = bfd_getb32 (hit_data); 234 insn += sym_value + reloc_entry->addend; 235 bfd_putb32 ((bfd_vma) insn, hit_data); 239 insn = bfd_getb16 (hit_data); 240 insn += sym_value + reloc_entry->addend 243 bfd_putb16 ((bfd_vma) insn, hit_dat [all...] |
H A D | libhppa.h | 380 #define get_opcode(insn) (((insn) >> 26) & 0x3f) 463 bfd_hppa_insn2fmt (bfd *abfd, int insn) argument 465 enum hppa_opcode_type op = get_opcode (insn); 523 if ((insn & 0x8000) != 0) 545 hppa_rebuild_insn (int insn, int value, int r_format) argument 550 return (insn & ~ 0x7ff) | low_sign_unext (value, 11); 553 return (insn & ~ 0x1ffd) | re_assemble_12 (value); 557 return (insn & ~ 0x3ff1) | re_assemble_14 (value & -8); 560 return (insn [all...] |
/haiku-fatelf/src/bin/gdb/gdb/ |
H A D | tramp-frame.h | 67 } insn[8]; member in struct:tramp_frame
|
H A D | sparcobsd-tdep.c | 51 unsigned long insn; local 57 insn = sparc_fetch_instruction (start_pc + 0xec); 58 if (insn != 0x83e82067) 62 insn = sparc_fetch_instruction (start_pc + 0xf4); 63 if (insn != 0x91d02000)
|
H A D | avr-tdep.c | 350 unsigned short insn; local 354 insn = EXTRACT_INSN (&prologue[vpc]); 355 if ((insn & 0xff00) == 0x0100) /* movw rXX, rYY */ 357 else if ((insn & 0xfc00) == 0x2c00) /* mov rXX, rYY */ 442 32 bit insn and rjmp is a 16 bit insn): 457 There could be multiple movw's. If the target doesn't have a movw insn, it 465 unsigned short insn; local 491 insn = EXTRACT_INSN (&prologue[vpc]); 493 if ((insn [all...] |
/haiku-fatelf/src/bin/gdb/gdb/gdbserver/ |
H A D | linux-mips-low.c | 132 unsigned long insn; local 134 (*the_target->read_memory) (where, (char *) &insn, 4); 135 if (insn == mips_breakpoint)
|
H A D | linux-ppc-low.c | 94 unsigned long insn; local 96 (*the_target->read_memory) (where, (char *) &insn, 4); 97 if (insn == ppc_breakpoint)
|