Lines Matching full:processor
23 * Herein lies the support for dynamic specification of processor
27 * "Processor instruction table specification".
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",
431 /* Get processor's register name from val */
451 itbl_get_name (e_processor processor, e_type type, unsigned long val)
455 r = find_entry_byval (processor, type, val, 0);
462 /* Get processor's register value from name */
465 itbl_get_val (e_processor processor, e_type type, char *name,
470 r = find_entry_byname (processor, type, name);
489 int processor;
495 for (processor = 0; processor < e_nprocs; processor++)
497 e = find_entry_byname (processor, e_insn, name);
531 r = find_entry_byname (e->processor, f->type, n);
581 e_processor processor;
587 processor = get_processor (ITBL_DECODE_PNUM (insn));
590 processor, e_insn, insn, 0);
615 r = find_entry_byval (e->processor, f->type, value, &f->range);
643 * for each processor.
654 opcode |= ITBL_ENCODE_PNUM (e->processor);
710 /* Extract processor's assembly instruction field name from s;
739 /* Search entries for a given processor and type
744 find_entry_byname (e_processor processor,
749 es = get_entries (processor, type);
758 /* Search entries for a given processor and type
765 find_entry_byval (e_processor processor, e_type type,
771 es = get_entries (processor, type);
774 if (processor != e->processor)
803 /* Return a pointer to the list of entries for a given processor and type. */
806 get_entries (e_processor processor, e_type type)
808 return &entries[processor][type];
811 /* Return an integral value for the processor passed from yyparse. */
816 /* translate from yacc's processor to enum */
819 return e_invproc; /* error; invalid processor */
850 alloc_entry (e_processor processor, e_type type,
863 e->processor = processor;
866 es = get_entries (e->processor, e->type);