- choose debugger for app (rom, mips or gdb)

- removed dcache_iv_at workaround
- constify
- testbench denano enable LEDs


git-svn-id: http://moon:8086/svn/mips@126 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2017-01-23 05:33:37 +00:00
parent c17168c6d3
commit b43657166c
6 changed files with 43 additions and 17 deletions
+16 -4
View File
@@ -12,17 +12,29 @@
#include "../../regdef.h"
extern uart_if_t uart_if[];
extern void handle_exception (unsigned long *registers);
int gdb_stub(struct xcptcontext * xcp)
#ifdef WITH_GDB_STUB
extern void handle_exception (unsigned long *registers);
#else
extern int dbg_handler(struct xcptcontext * xcp);
#endif
int dbg_stub(struct xcptcontext * xcp) __attribute__ ((section (".dbg_stub"))) __attribute__ ((used));
int dbg_stub(struct xcptcontext * xcp)
{
#ifdef WITH_GDB_STUB
handle_exception((unsigned long *)xcp);
return 0;
#else
return dbg_handler(xcp);
#endif
}
#ifdef WITH_ROM_GDBSTUB
#ifdef WITH_ROM_DEBUGGER
const fp_xcpt_t dbg_func = (fp_xcpt_t)0xbfc01fc0;
#else
const fp_xcpt_t dbg_func = (fp_xcpt_t)gdb_stub;
const fp_xcpt_t dbg_func = (fp_xcpt_t)dbg_stub;
#endif
#define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))