- fixed board file for ml402

- no lto

git-svn-id: http://moon:8086/svn/mips@139 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2017-02-08 20:36:49 +00:00
parent 3d5f7a19ba
commit 0b95ef9399
4 changed files with 24 additions and 13 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ OBJCOPY=mips-elf-objcopy
PROG-ml402 = $(addprefix $(BUILD_DIR)/, hello.elf testbench.elf test_irq.elf dhry.elf queens.elf stanford.elf paranoia.elf rmd160_test.elf Bessel.elf whet.elf phrasen.elf dttl.elf richards_benchmark.elf test_exception.elf life.elf r3.elf gunzip.elf basic_math.elf jman_patches.elf jman_patchmeshes.elf jman_polys.elf test_hpi.elf test_vga.elf test_fft.elf)
PROG-denano = $(addprefix $(BUILD_DIR)/, hello.elf dhry.elf queens.elf stanford.elf paranoia.elf rmd160_test.elf Bessel.elf whet.elf phrasen.elf dttl.elf richards_benchmark.elf test_exception.elf testbench_denano.elf)
PROG-sim = $(addprefix $(BUILD_DIR)/, hello.elf ICacheTest.elf)
CFLAGS-sim := -flto -O0
CFLAGS-sim := -O0
CFLAGS += $(CFLAGS-$(BOARD))
+19 -9
View File
@@ -12,17 +12,27 @@
#include "../../regdef.h"
extern uart_if_t uart_if[];
extern void handle_exception (unsigned long *registers);
int gdb_stub(struct xcptcontext * xcp)
{
handle_exception((unsigned long *)xcp);
return 0;
}
#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;
#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
}
const fp_xcpt_t dbg_func = (fp_xcpt_t)dbg_stub;
#endif
#define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
+1 -1
View File
@@ -24,7 +24,7 @@ SECTIONS
.exc_vector ORIGIN(ram) + 0x80 :
{
*(.exc_vect)
KEEP (*(.exc_vect))
} >ram
.init :
{