OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [debug/] [debug_unit.c] - Diff between revs 1351 and 1358

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1351 Rev 1358
Line 454... Line 454...
  mtspr (SPR_DRR, drr);
  mtspr (SPR_DRR, drr);
  set_stall_state (result != 0);
  set_stall_state (result != 0);
  return (result != 0);
  return (result != 0);
}
}
 
 
 No newline at end of file
 No newline at end of file
 
/*--------------------------------------------------[ Debug configuration ]---*/
 
void debug_enabled(union param_val val, void *dat)
 
{
 
  config.debug.enabled = val.int_val;
 
}
 
 
 
void debug_gdb_enabled(union param_val val, void *dat)
 
{
 
  config.debug.gdb_enabled = val.int_val;
 
}
 
 
 
void debug_server_port(union param_val val, void *dat)
 
{
 
  config.debug.server_port = val.int_val;
 
}
 
 
 
void debug_vapi_id(union param_val val, void *dat)
 
{
 
  config.debug.vapi_id = val.int_val;
 
}
 
 
 
void reg_debug_sec(void)
 
{
 
  struct config_section *sec = reg_config_sec("debug", NULL, NULL);
 
 
 
  reg_config_param(sec, "enabled", paramt_int, debug_enabled);
 
  reg_config_param(sec, "gdb_enabled", paramt_int, debug_gdb_enabled);
 
  reg_config_param(sec, "server_port", paramt_int, debug_server_port);
 
  reg_config_param(sec, "vapi_id", paramt_int, debug_server_port);
 
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.