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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_66/] [or1ksim/] [toplevel.c] - Diff between revs 560 and 599

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

Rev 560 Rev 599
Line 49... Line 49...
#include "gdbcomm.h"
#include "gdbcomm.h"
#include "debug_unit.h"
#include "debug_unit.h"
#include "coff.h"
#include "coff.h"
 
 
/* CVS revision number. */
/* CVS revision number. */
const char rcsrev[] = "$Revision: 1.69 $";
const char rcsrev[] = "$Revision: 1.70 $";
 
 
/* 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 660... Line 660...
         at the end of the cycle; no sim originated memory accesses should be
         at the end of the cycle; no sim originated memory accesses should be
         performed inbetween. */
         performed inbetween. */
      mem_cycles = 0;
      mem_cycles = 0;
      if (!config.pm.enabled || !testsprbits(SPR_PMR, SPR_PMR_DME | SPR_PMR_SME)) {
      if (!config.pm.enabled || !testsprbits(SPR_PMR, SPR_PMR_DME | SPR_PMR_SME)) {
        if (cont_run > 0) cont_run--;
        if (cont_run > 0) cont_run--;
        pic_clock ();
 
        if (cpu_clock ()) break;
 
        if (config.dc.enabled) dc_clock();
 
        if (config.ic.enabled) ic_clock();
 
        if (config.pm.enabled) {
        if (config.pm.enabled) {
          if (!testsprbits(SPR_PMR, SPR_PMR_SME))
          if (!testsprbits(SPR_PMR, SPR_PMR_SME))
            IFF (config.tick.enabled) tick_clock();
            IFF (config.tick.enabled) tick_clock();
        } else
        } else
          IFF (config.tick.enabled) tick_clock();
          IFF (config.tick.enabled) tick_clock();
 
        pic_clock ();
 
        if (cpu_clock ()) break;
 
        if (config.dc.enabled) dc_clock();
 
        if (config.ic.enabled) ic_clock();
      }
      }
 
 
      if (config.pm.enabled) pm_clock();
      if (config.pm.enabled) pm_clock();
      if (config.uarts) uart_clock();
      if (config.uarts) uart_clock();
      if (config.dmas) dma_clock();
      if (config.dmas) dma_clock();

powered by: WebSVN 2.1.0

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