Lines Matching defs:processor
23 * Herein lies the support for dynamic specification of processor
34 * reg3 - mnemonic for processor's register defined in table
40 * processor/type combination. lex and yacc are used to parse
45 * 1) get information on a processor's registers and
64 * e_processor processor = e_p3
127 /* These structures define the instructions and registers for a processor.
133 e_processor processor; /* processor number */
146 /* Array of entries for each processor and entry type */
153 static struct itbl_entry **get_entries (e_processor processor,
155 static struct itbl_entry *find_entry_byname (e_processor processor,
157 static struct itbl_entry *find_entry_byval (e_processor processor,
159 static struct itbl_entry *alloc_entry (e_processor processor,
181 printf ("Can't open processor instruction specification file \"%s\"\n",
428 /* Get processor's register name from val */
448 itbl_get_name (e_processor processor, e_type type, unsigned long val)
452 r = find_entry_byval (processor, type, val, 0);
459 /* Get processor's register value from name */
462 itbl_get_val (e_processor processor, e_type type, char *name,
467 r = find_entry_byname (processor, type, name);
486 int processor;
492 for (processor = 0; processor < e_nprocs; processor++)
494 e = find_entry_byname (processor, e_insn, name);
528 r = find_entry_byname (e->processor, f->type, n);
578 e_processor processor;
584 processor = get_processor (ITBL_DECODE_PNUM (insn));
587 e = find_entry_byval (processor, e_insn, insn, 0);
612 r = find_entry_byval (e->processor, f->type, value, &f->range);
640 * for each processor.
651 opcode |= ITBL_ENCODE_PNUM (e->processor);
707 /* Extract processor's assembly instruction field name from s;
736 /* Search entries for a given processor and type
741 find_entry_byname (e_processor processor,
746 es = get_entries (processor, type);
755 /* Search entries for a given processor and type
762 find_entry_byval (e_processor processor, e_type type,
768 es = get_entries (processor, type);
771 if (processor != e->processor)
800 /* Return a pointer to the list of entries for a given processor and type. */
803 get_entries (e_processor processor, e_type type)
805 return &entries[processor][type];
808 /* Return an integral value for the processor passed from yyparse. */
813 /* translate from yacc's processor to enum */
816 return e_invproc; /* error; invalid processor */
847 alloc_entry (e_processor processor, e_type type,
858 e->processor = processor;
861 es = get_entries (e->processor, e->type);