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.87 $";
|
const char rcsrev[] = "$Revision: 1.88 $";
|
|
|
/* 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 124... |
Line 124... |
printf (" Jimmy Chen-Min Chen, jimmy@ee.nctu.edu.tw\n");
|
printf (" Jimmy Chen-Min Chen, jimmy@ee.nctu.edu.tw\n");
|
printf (" Johan Rydberg, johan.rydberg@insight.se\n");
|
printf (" Johan Rydberg, johan.rydberg@insight.se\n");
|
printf (" Marko Mlinar, markom@opencores.org\n");
|
printf (" Marko Mlinar, markom@opencores.org\n");
|
printf ("Copyright (C) 2001 Simon Srot, simons@opencores.org\n");
|
printf ("Copyright (C) 2001 Simon Srot, simons@opencores.org\n");
|
printf (" Marko Mlinar, markom@opencores.org\n");
|
printf (" Marko Mlinar, markom@opencores.org\n");
|
|
printf ("Copyright (C) 2002 Marko Mlinar, markom@opencores.org\n");
|
|
printf (" Simon Srot, simons@opencores.org\n");
|
printf ("Visit http://www.opencores.org for more information about ");
|
printf ("Visit http://www.opencores.org for more information about ");
|
printf ("OpenRISC 1000 and\nother open source cores.\n\n");
|
printf ("OpenRISC 1000 and\nother open source cores.\n\n");
|
printf ("This software comes with ABSOLUTELY NO WARRANTY; for ");
|
printf ("This software comes with ABSOLUTELY NO WARRANTY; for ");
|
printf ("details see COPYING.\nThis is free software, and you ");
|
printf ("details see COPYING.\nThis is free software, and you ");
|
printf ("are welcome to redistribute it under certain\nconditions; ");
|
printf ("are welcome to redistribute it under certain\nconditions; ");
|
Line 424... |
Line 426... |
|
|
#if !FAST_SIM
|
#if !FAST_SIM
|
/* Read configuration file. */
|
/* Read configuration file. */
|
if (!runtime.sim.script_file_specified)
|
if (!runtime.sim.script_file_specified)
|
read_script_file ("sim.cfg");
|
read_script_file ("sim.cfg");
|
|
|
|
/* Overide parameters with command line ones */
|
|
if (runtime.simcmd.profile) config.sim.profile = 1;
|
|
if (runtime.simcmd.mprofile) config.sim.mprofile = 1;
|
|
|
if (!runtime.sim.script_file_specified && config.sim.verbose)
|
if (!runtime.sim.script_file_specified && config.sim.verbose)
|
fprintf (stderr, "WARNING: No config file read, assuming default configuration.\n");
|
fprintf (stderr, "WARNING: No config file read, assuming default configuration.\n");
|
#else
|
#else
|
printf ("\n\tNOTE: running fast sim with fixed configuration!\n\n");
|
printf ("\n\tNOTE: running fast sim with fixed configuration!\n\n");
|
#endif
|
#endif
|
Line 437... |
Line 444... |
}
|
}
|
print_config();
|
print_config();
|
sim_init ();
|
sim_init ();
|
signal(SIGINT, ctrl_c);
|
signal(SIGINT, ctrl_c);
|
|
|
|
#warning REMOVE ME!
|
|
main_cuc (runtime.sim.filename);
|
|
|
while(1) {
|
while(1) {
|
if (runtime.sim.iprompt) {
|
if (runtime.sim.iprompt) {
|
if (config.debug.gdb_enabled)
|
if (config.debug.gdb_enabled)
|
{
|
{
|
printf ("(sim) ");
|
printf ("(sim) ");
|