URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [tags/] [tn_m001/] [or1ksim/] [toplevel.c] - Diff between revs 444 and 463
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 444 |
Rev 463 |
Line 50... |
Line 50... |
#include "coff.h"
|
#include "coff.h"
|
|
|
#include "gdbcomm.h"
|
#include "gdbcomm.h"
|
|
|
/* CVS revision number. */
|
/* CVS revision number. */
|
const char rcsrev[] = "$Revision: 1.52 $";
|
const char rcsrev[] = "$Revision: 1.53 $";
|
|
|
/* 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 634... |
Line 634... |
continue;
|
continue;
|
} else
|
} else
|
fprintf (stderr, "WARNING: CPU stalled and gdb connection not enabled.");
|
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)) {
|
|
pic_clock();
|
if(cycle_delay <= 0) {
|
if(cycle_delay <= 0) {
|
unsigned int addr;
|
unsigned int addr;
|
if (cont_run > 0) cont_run--;
|
if (cont_run > 0) cont_run--;
|
if(fetch()) {
|
if(fetch()) {
|
printf ("Breakpoint hit.\n");
|
printf ("Breakpoint hit.\n");
|
Line 682... |
Line 683... |
if (!hush)
|
if (!hush)
|
dumpreg();
|
dumpreg();
|
} else
|
} else
|
cycle_delay--;
|
cycle_delay--;
|
|
|
pic_clock();
|
|
dc_clock();
|
dc_clock();
|
ic_clock();
|
ic_clock();
|
if (!testsprbits(SPR_PMR, SPR_PMR_SME)) tick_clock();
|
if (!testsprbits(SPR_PMR, SPR_PMR_SME)) tick_clock();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.