This change updates the gem5 SST Bridge to use SST 13.0.0. Changes are made to replace SimpleMem class to StandardMem class as SimpleMem will be deprecated in SST 14 and above. In addition, the translator.hh is updated to translate more types of gem5 packets. A new parameter `ports` was added on SST's side when invoking the gem5 component which does not require recompiling the gem5 component whenever a new outgoing bridge is added in a gem5 config. Change-Id: I45f0013bc35d088df0aa5a71951422cabab4d7f7 Signed-off-by: Kaustav Goswami <kggoswami@ucdavis.edu>
22 lines
675 B
Makefile
22 lines
675 B
Makefile
SST_VERSION=SST-13.0.0 # Name of the .pc file in lib/pkgconfig where SST is installed
|
|
GEM5_LIB=gem5_opt
|
|
ARCH=RISCV
|
|
OFLAG=3
|
|
|
|
LDFLAGS=-shared -fno-common ${shell pkg-config ${SST_VERSION} --libs} -L../../build/${ARCH}/ -Wl,-rpath ../../build/${ARCH}
|
|
CXXFLAGS=-std=c++17 -g -O${OFLAG} -fPIC ${shell pkg-config ${SST_VERSION} --cflags} ${shell python3-config --includes} -I../../build/${ARCH}/ -I../../ext/pybind11/include/ -I../../build/softfloat/ -I../../ext
|
|
CPPFLAGS+=-MMD -MP
|
|
SRC=$(wildcard *.cc)
|
|
|
|
.PHONY: clean all
|
|
|
|
all: libgem5.so
|
|
|
|
libgem5.so: $(SRC:%.cc=%.o)
|
|
${CXX} ${CPPFLAGS} ${LDFLAGS} $? -o $@ -l${GEM5_LIB}
|
|
|
|
-include $(SRC:%.cc=%.d)
|
|
|
|
clean:
|
|
${RM} *.[do] libgem5.so
|