URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1471 |
Rev 1479 |
Line 326... |
Line 326... |
return 0;
|
return 0;
|
}
|
}
|
|
|
static int sim_cmd_break(int argc, char **argv) /* set/clear breakpoint */
|
static int sim_cmd_break(int argc, char **argv) /* set/clear breakpoint */
|
{
|
{
|
|
#if DYNAMIC_EXECUTION
|
|
PRINTF("Setting simulator breakpoints is not support with the recompiler\n");
|
|
return 0;
|
|
#else
|
char *p;
|
char *p;
|
oraddr_t addr;
|
oraddr_t addr;
|
struct label_entry *l;
|
struct label_entry *l;
|
|
|
if(argc != 2) {
|
if(argc != 2) {
|
Line 345... |
Line 349... |
else
|
else
|
PRINTF("Label `%s' does not exist\n", l->name);
|
PRINTF("Label `%s' does not exist\n", l->name);
|
}
|
}
|
set_insnbrkpoint(addr);
|
set_insnbrkpoint(addr);
|
return 0;
|
return 0;
|
|
#endif
|
}
|
}
|
|
|
static int sim_cmd_r(int argc, char **argv) /* dump regs */
|
static int sim_cmd_r(int argc, char **argv) /* dump regs */
|
{
|
{
|
dumpreg();
|
dumpreg();
|
Line 451... |
Line 456... |
return 1;
|
return 1;
|
}
|
}
|
|
|
static int sim_cmd_stall(int argc, char **argv) /* Added by CZ 210801 */
|
static int sim_cmd_stall(int argc, char **argv) /* Added by CZ 210801 */
|
{
|
{
|
|
#if DYNAMIC_EXECUTION
|
|
PRINTF("Can't stall the cpu with the dynamic recompiler\n");
|
|
return 0;
|
|
#else
|
set_stall_state (1);
|
set_stall_state (1);
|
runtime.sim.iprompt = 0;
|
runtime.sim.iprompt = 0;
|
runtime.sim.hush = 1;
|
runtime.sim.hush = 1;
|
return 1;
|
return 1;
|
|
#endif
|
}
|
}
|
|
|
static int sim_cmd_stats(int argc, char **argv) /* stats */
|
static int sim_cmd_stats(int argc, char **argv) /* stats */
|
{
|
{
|
if(argc != 2) {
|
if(argc != 2) {
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.