URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 1592 to Rev 1593
- ↔ Reverse comparison
Rev 1592 → Rev 1593
/trunk/or1ksim/sim-config.h
180,6 → 180,7
char *filename; /* Original Command Simulator file (CZ) */ |
char script_fn[STR_SIZE]; /* Script file read */ |
int iprompt; /* Interactive prompt */ |
int iprompt_run; /* Interactive prompt is running */ |
long long cycles; /* Cycles counts fetch stages */ |
|
int mem_cycles; /* Each cycle has counter of mem_cycles; |
/trunk/or1ksim/sim-cmd.c
593,6 → 593,8
static char prev_str[500] = { 0 }; |
#endif |
|
runtime.sim.iprompt_run = 1; |
|
/* Make sure that check_insn_exec is not left hanging in the scheduler (and |
* breaking the sim when the user doesn't want it to break). */ |
SCHED_FIND_REMOVE(check_insn_exec, NULL); |
673,6 → 675,7
if(!strcmp(cur_cmd->name, argv[0])) { |
if(cur_cmd->cmd_handle(argc, argv)) { |
runtime.sim.iprompt = 0; |
runtime.sim.iprompt_run = 0; |
return; |
} |
break; |
/trunk/or1ksim/toplevel.c
104,8 → 104,7
/* Incase the user pressed ctrl+c twice without the sim reacting kill it. |
* This is incase the sim locks up in a high level routine, without executeing |
* any (or) code */ |
/* FIXME: Don't kill the sim in handle_sim_command */ |
if(runtime.sim.iprompt) |
if(runtime.sim.iprompt && !runtime.sim.iprompt_run) |
sim_done(); |
runtime.sim.iprompt = 1; |
signal(SIGINT, ctrl_c); |