URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Show entire file |
Details |
Blame |
View Log
Rev 497 |
Rev 529 |
Line 3579... |
Line 3579... |
|
|
int gdb_set_chain(int chain)
|
int gdb_set_chain(int chain)
|
{
|
{
|
switch (chain) {
|
switch (chain) {
|
case SC_RISC_DEBUG:
|
case SC_RISC_DEBUG:
|
|
if (no_cpu)
|
|
return ERR_NONE;
|
|
else
|
|
gdb_chain = chain;
|
|
return ERR_NONE;
|
case SC_REGISTER:
|
case SC_REGISTER:
|
case SC_TRACE:
|
case SC_TRACE:
|
case SC_WISHBONE:
|
case SC_WISHBONE:
|
gdb_chain = chain;
|
gdb_chain = chain;
|
return ERR_NONE;
|
return ERR_NONE;
|
Line 3635... |
Line 3640... |
|
|
@param[in] state If non-zero stall the processor. */
|
@param[in] state If non-zero stall the processor. */
|
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
static void set_stall_state(int state)
|
static void set_stall_state(int state)
|
{
|
{
|
|
if (no_cpu)
|
|
return;
|
|
|
if (state == 0) {
|
if (state == 0) {
|
err = dbg_cpu0_write_ctrl(0, 0); /* unstall or1k */
|
err = dbg_cpu0_write_ctrl(0, 0); /* unstall or1k */
|
stallState = UNSTALLED;
|
stallState = UNSTALLED;
|
npcIsCached = 0;
|
npcIsCached = 0;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.