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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [cuc/] [load.c] - Diff between revs 906 and 997

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

Rev 906 Rev 997
Line 66... Line 66...
 
 
/* Prints out instructions */
/* Prints out instructions */
void print_cuc_insns (char *s, int verbose)
void print_cuc_insns (char *s, int verbose)
{
{
  int i, j;
  int i, j;
  printf ("****************** %s ******************\n", s);
  PRINTF ("****************** %s ******************\n", s);
  print_insns (insn, num_insn,verbose);
  print_insns (insn, num_insn,verbose);
  printf ("\n\n");
  PRINTF ("\n\n");
}
}
 
 
void xchg_insn (int i, int j)
void xchg_insn (int i, int j)
{
{
  cuc_insn t;
  cuc_insn t;
Line 372... Line 372...
    if (fscanf (fi, "%08x\n", &data) != 1) break;
    if (fscanf (fi, "%08x\n", &data) != 1) break;
 
 
    /* build params */
    /* build params */
    name = build_insn (data, &insn[i]);
    name = build_insn (data, &insn[i]);
    if (func_return) func_return++;
    if (func_return) func_return++;
    //printf ("%s\n", name);
    //PRINTF ("%s\n", name);
 
 
    if (or32_opcodes[insn[i].index].flags & OR32_IF_DELAY) {
    if (or32_opcodes[insn[i].index].flags & OR32_IF_DELAY) {
      int f;
      int f;
      if (strcmp (name, "l.bnf") == 0) f = 1;
      if (strcmp (name, "l.bnf") == 0) f = 1;
      else if (strcmp (name, "l.bf") == 0) f = 0;
      else if (strcmp (name, "l.bf") == 0) f = 0;

powered by: WebSVN 2.1.0

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