Lines Matching refs:v
182 Vary * v; in valid_varybits() local
189 v = vary[op->vary[vn].varyno]; in valid_varybits()
190 ob = (bits >> op->vary[vn].shift) & v->mask; in valid_varybits()
191 lprintf (sim_log, "varybits: vary %s ob %x\n", v->name, ob); in valid_varybits()
193 for (i = 0; i < v->n_patterns; i++) in valid_varybits()
194 if (ob == v->patterns[i]) in valid_varybits()
491 Vary * v = (Vary *) malloc (sizeof (Vary)); in process_vary() local
498 vary[n_varies - 1] = v; in process_vary()
505 v->name = pv_dup (cp, ep); in process_vary()
506 v->nlen = strlen (v->name); in process_vary()
507 v->mask = (1 << v->nlen) - 1; in process_vary()
509 v->n_patterns = 0; in process_vary()
510 v->patterns = (unsigned char *) malloc (1); in process_vary()
517 v->n_patterns++; in process_vary()
518 v->patterns = (unsigned char *) realloc (v->patterns, v->n_patterns); in process_vary()
519 v->patterns[v->n_patterns - 1] = str2mask (cp, ep); in process_vary()
726 Vary *v = vary[i]; in main() local
727 lprintf (sim_log, "V[%s] %d\n", v->name, v->nlen); in main()
728 for (j = 0; j < v->n_patterns; j++) in main()
729 lprintf (sim_log, " P %02x\n", v->patterns[j]); in main()
751 int j, b, v; in main() local
763 for (v = 0; v < n_varies; v++) in main()
764 if (fieldcmp (opcodes[i], j * 8 + b, vary[v]->name)) in main()
775 opcodes[i]->vary[nv].varyno = v; in main()
777 opcodes[i]->vary[nv].shift = 8 - b - vary[v]->nlen; in main()
779 vary[v]->name, opcodes[i]->vary[nv].shift); in main()