mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
Merge remote-tracking branch 'origin/master' into develop-documentation
This commit is contained in:
commit
27f3d6dde6
3 changed files with 2 additions and 54 deletions
|
@ -1,46 +0,0 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index ea340c8..d2aac5b 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -7,16 +7,16 @@ OBJS := $(patsubst $(SRCDIR)/%.cpp, $(OBJDIR)/%.o, $(SRCS))
|
||||
|
||||
# Ramulator currently supports g++ 5.1+ or clang++ 3.4+. It will NOT work with
|
||||
# g++ 4.x due to an internal compiler error when processing lambda functions.
|
||||
-CXX := clang++
|
||||
+#CXX := clang++
|
||||
# CXX := g++-5
|
||||
-CXXFLAGS := -O3 -std=c++11 -g -Wall
|
||||
+CXXFLAGS := -std=c++11 -O3 -g -Wall -fPIC
|
||||
|
||||
.PHONY: all clean depend
|
||||
|
||||
all: depend ramulator
|
||||
|
||||
clean:
|
||||
- rm -f ramulator
|
||||
+ rm -f ramulator libramulator.a
|
||||
rm -rf $(OBJDIR)
|
||||
|
||||
depend: $(OBJDIR)/.depend
|
||||
@@ -36,7 +36,7 @@ ramulator: $(MAIN) $(OBJS) $(SRCDIR)/*.h | depend
|
||||
$(CXX) $(CXXFLAGS) -DRAMULATOR -o $@ $(MAIN) $(OBJS)
|
||||
|
||||
libramulator.a: $(OBJS) $(OBJDIR)/Gem5Wrapper.o
|
||||
- libtool -static -o $@ $(OBJS) $(OBJDIR)/Gem5Wrapper.o
|
||||
+ $(AR) rcs $@ $^
|
||||
|
||||
$(OBJS): | $(OBJDIR)
|
||||
|
||||
diff --git a/src/Request.h b/src/Request.h
|
||||
index 57abd0d..a5ce061 100644
|
||||
--- a/src/Request.h
|
||||
+++ b/src/Request.h
|
||||
@@ -36,7 +36,7 @@ public:
|
||||
|
||||
Request(long addr, Type type, int coreid = 0)
|
||||
: is_first_command(true), addr(addr), coreid(coreid), type(type),
|
||||
- callback([](Request& req){}) {}
|
||||
+ callback([](Request&){}) {}
|
||||
|
||||
Request(long addr, Type type, function<void(Request&)> callback, int coreid = 0)
|
||||
: is_first_command(true), addr(addr), coreid(coreid), type(type), callback(callback) {}
|
|
@ -39,13 +39,6 @@ SRCS = $(COMMON_DIR)/util.cpp $(COMMON_DIR)/mem.cpp $(COMMON_DIR)/rvfloats.cpp $
|
|||
SRCS += $(DPI_DIR)/util_dpi.cpp $(DPI_DIR)/float_dpi.cpp
|
||||
SRCS += $(SRC_DIR)/processor.cpp
|
||||
|
||||
ifdef AXI_BUS
|
||||
TOP = Vortex_axi
|
||||
CXXFLAGS += -DAXI_BUS
|
||||
else
|
||||
TOP = Vortex
|
||||
endif
|
||||
|
||||
VL_FLAGS = --exe
|
||||
VL_FLAGS += --language 1800-2009 --assert -Wall -Wpedantic
|
||||
VL_FLAGS += -Wno-DECLFILENAME -Wno-REDEFMACRO
|
||||
|
|
|
@ -8,11 +8,12 @@ XRT_DEVICE_INDEX ?= 0
|
|||
VORTEX_RT_PATH ?= $(ROOT_DIR)/runtime
|
||||
VORTEX_KN_PATH ?= $(ROOT_DIR)/kernel
|
||||
|
||||
STARTUP_ADDR ?= 0x80000000
|
||||
ifeq ($(XLEN),64)
|
||||
VX_CFLAGS += -march=rv64imafd -mabi=lp64d
|
||||
STARTUP_ADDR ?= 0x180000000
|
||||
else
|
||||
VX_CFLAGS += -march=rv32imaf -mabi=ilp32f
|
||||
STARTUP_ADDR ?= 0x80000000
|
||||
endif
|
||||
|
||||
LLVM_CFLAGS += --sysroot=$(RISCV_SYSROOT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue