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

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [toplevel.c] - Diff between revs 1506 and 1537

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

Rev 1506 Rev 1537
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.128 $";
const char rcsrev[] = "$Revision: 1.129 $";
 
 
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 234... Line 234...
      PRINTF("ERROR: Problems opening exe_log file.\n");
      PRINTF("ERROR: Problems opening exe_log file.\n");
      exit (1);
      exit (1);
    }
    }
  }
  }
 
 
  if (config.sim.spr_log) {
 
    PRINTF("OPENING SPRLOG\n");
 
    runtime.sim.fspr_log = fopen(config.sim.spr_log_fn, "wt+");
 
    if (!runtime.sim.fspr_log) {
 
      PRINTF("ERROR: Problems opening spr_log file.\n");
 
      exit(1);
 
    }
 
  }
 
 
 
  if(runtime.sim.filename) {
  if(runtime.sim.filename) {
    unsigned long endaddr = 0xFFFFFFFF;
    unsigned long endaddr = 0xFFFFFFFF;
    endaddr = loadcode(runtime.sim.filename, 0, 0); /* MM170901 always load at address zero.  */
    endaddr = loadcode(runtime.sim.filename, 0, 0); /* MM170901 always load at address zero.  */
    if (endaddr == -1) {
    if (endaddr == -1) {
      fprintf(stderr, "Problems loading boot code.\n");
      fprintf(stderr, "Problems loading boot code.\n");

powered by: WebSVN 2.1.0

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