[mips]- added sim stuff and lto

git-svn-id: http://moon:8086/svn/mips@136 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2017-02-04 10:59:49 +00:00
parent 1acf88ea01
commit 1530cab6de
6 changed files with 23 additions and 9 deletions
+3 -2
View File
@@ -1,5 +1,5 @@
# environment vaiables read:
# BOARD = {ml402, denano}
# BOARD = {ml402, denano, sim}
# TLB = {no, yes}
# ENDIANESS = {eb, el}
BOARD ?= ml402
@@ -50,7 +50,8 @@ all: $(BUILD_DIR) $(BUILD_DIR)/bootloader.elf $(BUILD_DIR)/bootloader_with_flash
OBJS-ml402=$(addprefix $(BUILD_DIR)/, startup.o kernel.o cop0.o libsys.o srec.o board.o uart.o $(DBG_OBJ))
OBJS-denano=$(addprefix $(BUILD_DIR)/, startup.o kernel.o cop0.o libsys.o srec.o board.o uart.o $(DBG_OBJ))
OBJS-sim=$(addprefix $(BUILD_DIR)/, startup.o kernel.o cop0.o libsys.o srec.o board.o uart.o $(DBG_OBJ))
$(BUILD_DIR)/cop0.o : ../libsys/cop0.c
$(CC) $(CFLAGS) -c -o $@ $<
+1 -1
View File
@@ -5,7 +5,7 @@
#define MAGIC_EB 0x4A464931 // "JFI1" in big-endian;
#define MAGIC_EL 0x3149464A // "JFI1" in little-endian;
extern uint32_t getBootOffset(uint32_t sel);
extern uint32_t getBootOffset(uint32_t sel) __attribute__ ((used));
typedef struct _sflash_img_hdr_t
{