提交 9cddcc7f 编写于 作者: L LinJiawei

reduce mem size & opt config

1.reduce mem size in stand alone mode
2.use make xxx XIANGSHAN=1 to align mmio space to XiangShan
上级 486a81fa
......@@ -60,6 +60,10 @@ include Makefile.git
.DEFAULT_GOAL = app
ifdef XIANGSHAN
CFLAGS += -DXIANGSHAN=1
endif
# Compilation flags
CC = gcc
LD = gcc
......
......@@ -5,8 +5,6 @@
typedef void(*io_callback_t)(uint32_t, int, bool);
#define XIANGSHAN
#ifdef XIANGSHAN
// SD
......
......@@ -3,7 +3,11 @@
#include <common.h>
#define PMEM_SIZE (8 * 1024 * 1024 * 1024UL)
#ifdef _SHARE
#define PMEM_SIZE (8 * 1024 * 1024 * 1024UL)
#else
#define PMEM_SIZE (256 * 1024 * 1024UL)
#endif
void init_mem();
......
......@@ -5,8 +5,6 @@
#include <device/alarm.h>
#include <SDL2/SDL.h>
#define XIANGSHAN
void init_alarm();
void init_serial();
void init_uartlite();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册