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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc2/] [or1ksim/] [toplevel.c] - Diff between revs 269 and 293

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

Rev 269 Rev 293
Line 77... Line 77...
static int gdb_read(void*,int);
static int gdb_read(void*,int);
static int gdb_write(void*,int);
static int gdb_write(void*,int);
void BlockJTAG(void);
void BlockJTAG(void);
 
 
/* CVS revision number. */
/* CVS revision number. */
const char rcsrev[] = "$Revision: 1.35 $";
const char rcsrev[] = "$Revision: 1.36 $";
 
 
/* 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 611... Line 611...
                while(cont_run != 0) {
                while(cont_run != 0) {
                  int debug_slowdown = DEBUG_SLOWDOWN;
                  int debug_slowdown = DEBUG_SLOWDOWN;
                  extern int cycle_delay;  /* Added by CZ 27/05/01. Set during exception. */
                  extern int cycle_delay;  /* Added by CZ 27/05/01. Set during exception. */
                  extern int cpu_stalled;  /* CZ from debug_interface */
                  extern int cpu_stalled;  /* CZ from debug_interface */
 
 
                  if(GDB_ENABLED && cpu_stalled)
                  if(GDB_ENABLED && cpu_stalled) {
                    {
 
                      BlockJTAG();
                      BlockJTAG();
                      HandleServerSocket(false);
                      HandleServerSocket(false);
                      continue;
                      continue;
                    }
            } else
 
              fprintf (stderr, "WARNING: CPU stalled and gdb connection not enabled.");
 
 
      if (!testsprbits(SPR_PMR, SPR_PMR_DME | SPR_PMR_SME)) {
      if (!testsprbits(SPR_PMR, SPR_PMR_DME | SPR_PMR_SME)) {
        if(cycle_delay <= 0)
        if(cycle_delay <= 0)
          {
          {
            unsigned int addr;
            unsigned int addr;
Line 680... Line 680...
      pm_clock();
      pm_clock();
      uart_clock();
      uart_clock();
      dma_clock();
      dma_clock();
      eth_clock();
      eth_clock();
 
 
 
      /*if (config.vapi.enabled)
 
        vapi_check();*/
      if (GDB_ENABLED && debug_slowdown-- == 0) {
      if (GDB_ENABLED && debug_slowdown-- == 0) {
        debug_slowdown = DEBUG_SLOWDOWN;
        debug_slowdown = DEBUG_SLOWDOWN;
                          HandleServerSocket(false); /* block & check_stdin = false */
                          HandleServerSocket(false); /* block & check_stdin = false */
                        }
                        }
                }
                }

powered by: WebSVN 2.1.0

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