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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc1/] [or1ksim/] [toplevel.c] - Diff between revs 1471 and 1480

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

Rev 1471 Rev 1480
Line 66... Line 66...
#include "dumpverilog.h"
#include "dumpverilog.h"
#include "trace.h"
#include "trace.h"
#include "cuc.h"
#include "cuc.h"
 
 
/* CVS revision number. */
/* CVS revision number. */
const char rcsrev[] = "$Revision: 1.125 $";
const char rcsrev[] = "$Revision: 1.126 $";
 
 
inline void debug(int level, const char *format, ...)
inline void debug(int level, const char *format, ...)
{
{
  char *p;
  char *p;
  va_list ap;
  va_list ap;
Line 99... Line 99...
}
}
 
 
void ctrl_c(signum)
void ctrl_c(signum)
     int signum;
     int signum;
{
{
 
  /* Incase the user pressed ctrl+c twice without the sim reacting kill it.
 
   * This is incase the sim locks up in a high level routine, without executeing
 
   * any (or) code */
 
  /* FIXME: Don't kill the sim in handle_sim_command */
 
  if(runtime.sim.iprompt)
 
    sim_done();
  runtime.sim.iprompt = 1;
  runtime.sim.iprompt = 1;
  signal(SIGINT, ctrl_c);
  signal(SIGINT, ctrl_c);
}
}
 
 
/* Periodically checks runtime.sim.iprompt to see if ctrl_c has been pressed */
/* Periodically checks runtime.sim.iprompt to see if ctrl_c has been pressed */

powered by: WebSVN 2.1.0

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