URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
[/] [openrisc/] [trunk/] [or1ksim/] [toplevel-support.c] - Diff between revs 235 and 442
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 235 |
Rev 442 |
Line 94... |
Line 94... |
runtime.sim.iprompt = 1;
|
runtime.sim.iprompt = 1;
|
signal (SIGINT, ctrl_c);
|
signal (SIGINT, ctrl_c);
|
|
|
} /* ctrl_c() */
|
} /* ctrl_c() */
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
/*!Signal handler for SIGUSR1
|
|
|
|
Toggles state of trace generating while program is running.
|
|
|
|
@param[in] signum The signal which triggered this handler */
|
|
/*---------------------------------------------------------------------------*/
|
|
void
|
|
toggle_trace (signum)
|
|
int signum;
|
|
{
|
|
|
|
runtime.sim.hush = !runtime.sim.hush;
|
|
|
|
signal (SIGUSR1, toggle_trace);
|
|
|
|
} /* toggle_trace() */
|
|
|
|
|
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
/*!Routine poll to see if interaction is needed
|
/*!Routine poll to see if interaction is needed
|
|
|
This is most likely to happen due to a ctrl-C. However when the -i flag is
|
This is most likely to happen due to a ctrl-C. However when the -i flag is
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.