OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [cpu/] [or32/] [or32.c] - Diff between revs 127 and 220

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 127 Rev 220
Line 981... Line 981...
  or32_debug (9, "#%08lX %08lX\n", cur->type, cur->data);
  or32_debug (9, "#%08lX %08lX\n", cur->type, cur->data);
  cur++;
  cur++;
  return cur;
  return cur;
}
}
 
 
/* Constructs new automata based on or32_opcodes array.  */
/* -------------------------------------------------------------------------- */
 
/*!Constructs new automata based on or32_opcodes array.
 
 
 
   @param[in] quiet  If non-zero (TRUE) do not print informational messages. */
 
/* -------------------------------------------------------------------------- */
void
void
build_automata ()
build_automata (int  quiet)
{
{
  int i;
  int i;
  unsigned long *end;
  unsigned long *end;
  struct insn_op_struct *cur;
  struct insn_op_struct *cur;
 
 
Line 999... Line 1002...
                                        num_opcodes);
                                        num_opcodes);
 
 
  nuncovered = num_opcodes;
  nuncovered = num_opcodes;
 
 
#ifdef HAVE_EXECUTION
#ifdef HAVE_EXECUTION
 
  if (!quiet)
 
    {
  printf ("Building automata... ");
  printf ("Building automata... ");
 
    }
#endif
#endif
 
 
  /* Build temporary information about instructions.  */
  /* Build temporary information about instructions.  */
  for (i = 0; i < num_opcodes; i++)
  for (i = 0; i < num_opcodes; i++)
    {
    {
Line 1024... Line 1030...
    {
    {
      fprintf (stderr, "Automata too large. Increase MAX_AUTOMATA_SIZE.");
      fprintf (stderr, "Automata too large. Increase MAX_AUTOMATA_SIZE.");
      exit (1);
      exit (1);
    }
    }
#ifdef HAVE_EXECUTION
#ifdef HAVE_EXECUTION
 
  if (!quiet)
 
    {
  printf ("done, num uncovered: %i/%i.\n", nuncovered, num_opcodes);
  printf ("done, num uncovered: %i/%i.\n", nuncovered, num_opcodes);
 
    }
#endif
#endif
 
 
#ifdef HAVE_EXECUTION
#ifdef HAVE_EXECUTION
 
  if (!quiet)
 
    {
  printf ("Parsing operands data... ");
  printf ("Parsing operands data... ");
 
    }
#endif
#endif
  op_data =
  op_data =
    (struct insn_op_struct *) malloc (MAX_OP_TABLE_SIZE *
    (struct insn_op_struct *) malloc (MAX_OP_TABLE_SIZE *
                                      sizeof (struct insn_op_struct));
                                      sizeof (struct insn_op_struct));
  op_start =
  op_start =
Line 1049... Line 1061...
                   "Operands table too small, increase MAX_OP_TABLE_SIZE.\n");
                   "Operands table too small, increase MAX_OP_TABLE_SIZE.\n");
          exit (1);
          exit (1);
        }
        }
    }
    }
#ifdef HAVE_EXECUTION
#ifdef HAVE_EXECUTION
 
  if (!quiet)
 
    {
  printf ("done.\n");
  printf ("done.\n");
 
    }
#endif
#endif
}
}
 
 
void
void
destruct_automata ()
destruct_automata ()

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.