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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_70/] [or1ksim/] [toplevel.c] - Diff between revs 876 and 879

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

Rev 876 Rev 879
Line 58... Line 58...
#include "mprofiler.h"
#include "mprofiler.h"
#include "mc.h"
#include "mc.h"
#include "atahost.h"
#include "atahost.h"
 
 
/* CVS revision number. */
/* CVS revision number. */
const char rcsrev[] = "$Revision: 1.86 $";
const char rcsrev[] = "$Revision: 1.87 $";
 
 
/* Continuos run versus single step tracing switch. */
/* Continuos run versus single step tracing switch. */
int cont_run;
int cont_run;
 
 
/* History of execution */
/* History of execution */
Line 158... Line 158...
#if !FAST_SIM
#if !FAST_SIM
  printf("set <section> <item> = <param>  - set configuration.  See sim.cfg for more information.\n");
  printf("set <section> <item> = <param>  - set configuration.  See sim.cfg for more information.\n");
  printf("debug      - toggles simulator debug mode\n");
  printf("debug      - toggles simulator debug mode\n");
  mp_help ();
  mp_help ();
  prof_help ();
  prof_help ();
 
  printf("cuc        - enters Custom Unit Compiler command prompt\n");
#endif
#endif
  printf("help       - available commands (this list)\n");
  printf("help       - available commands (this list)\n");
}
}
 
 
void debugmem (unsigned long from, unsigned long to );
void debugmem (unsigned long from, unsigned long to );
Line 674... Line 675...
      }
      }
    } else
    } else
    if (strcmp(item1, "info") == 0) /* configuration info */
    if (strcmp(item1, "info") == 0) /* configuration info */
      sim_info ();
      sim_info ();
    else
    else
 
#if !FAST_SIM
    if (strcmp (item1, "profiler") == 0) { /* run profiler utility */
    if (strcmp (item1, "profiler") == 0) { /* run profiler utility */
      char *argv[10];
      char *argv[10];
      int argc = tokenize_line (linestr, argv, 10);
      int argc = tokenize_line (linestr, argv, 10);
      main_profiler (argc, argv);
      main_profiler (argc, argv);
    } else
    } else
    if (strcmp (item1, "mprofiler") == 0) { /* run mprofiler utility */
    if (strcmp (item1, "mprofiler") == 0) { /* run mprofiler utility */
      char *argv[10];
      char *argv[10];
      int argc = tokenize_line (linestr, argv, 10);
      int argc = tokenize_line (linestr, argv, 10);
      main_mprofiler (argc, argv);
      main_mprofiler (argc, argv);
    } else
    } else
#if !FAST_SIM
    if (strcmp (item1, "cuc") == 0) { /* run Custom Unit Compiler */
 
      main_cuc (runtime.sim.filename);
 
    } else
    if (strcmp(item1, "set") == 0) { /* configuration info */
    if (strcmp(item1, "set") == 0) { /* configuration info */
      char *s = linestr;
      char *s = linestr;
      int i;
      int i;
      extern section;
      extern section;
      extern struct section sections[];
      extern struct section sections[];

powered by: WebSVN 2.1.0

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