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

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [toplevel.c] - Diff between revs 1548 and 1550

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

Rev 1548 Rev 1550
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.132 $";
const char rcsrev[] = "$Revision: 1.133 $";
 
 
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 146... Line 146...
  void *dat;
  void *dat;
  void (*reset_hook)(void *);
  void (*reset_hook)(void *);
  struct sim_reset_hook *next;
  struct sim_reset_hook *next;
};
};
 
 
struct sim_reset_hook *sim_reset_hooks = NULL;
static struct sim_reset_hook *sim_reset_hooks = NULL;
 
 
/* Registers a new reset hook, called when sim_reset below is called */
/* Registers a new reset hook, called when sim_reset below is called */
void reg_sim_reset(void (*reset_hook)(void *), void *dat)
void reg_sim_reset(void (*reset_hook)(void *), void *dat)
{
{
  struct sim_reset_hook *new = malloc(sizeof(struct sim_reset_hook));
  struct sim_reset_hook *new = malloc(sizeof(struct sim_reset_hook));
Line 344... Line 344...
}
}
 
 
void recalc_do_stats(void)
void recalc_do_stats(void)
{
{
  extern int do_stats;
  extern int do_stats;
  do_stats = config.cpu.dependstats || config.cpu.superscalar ||
  do_stats = config.cpu.superscalar || config.cpu.dependstats ||
             config.cpu.dependstats || config.sim.history || config.sim.exe_log;
             config.sim.history || config.sim.exe_log;
}
}
 
 
/* Main function */
/* Main function */
int main(argc, argv)
int main(argc, argv)
     int argc;
     int argc;

powered by: WebSVN 2.1.0

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