Skip to content

Commit

Permalink
create boom (2018) dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sbeamer committed Feb 11, 2020
1 parent 132caed commit 6947f2e
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 26 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "rocket18/riscv-fesvr"]
path = rocket18/riscv-fesvr
url = https://github.com/riscv/riscv-fesvr.git
[submodule "boom/riscv-fesvr"]
path = boom/riscv-fesvr
url = https://github.com/riscv/riscv-fesvr.git
4 changes: 4 additions & 0 deletions boom/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.riscv-fesvr/build
emulator
TestHarness.h
riscv/
29 changes: 29 additions & 0 deletions boom/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
CXXFLAGS = -O3 -std=c++11
CLANG_FLAGS = -fno-slp-vectorize -fbracket-depth=1024

UNAME_OS := $(shell uname -s)
ifeq ($(UNAME_OS),Darwin)
CXXFLAGS += $(CLANG_FLAGS)
endif

ifeq ($(ALL_ON),1)
CXXFLAGS += -DALL_ON
endif

INCLUDES = -I../csrc -Iriscv/include -I../firrtl-sig

LIBS = -Lriscv/lib -Wl,-rpath,riscv/lib -lfesvr -lpthread

riscv_dir := $(shell pwd)/riscv

riscv/lib/libfesvr.so:
git submodule update --init riscv-fesvr
cd riscv-fesvr; git checkout `cat ../fesvr.commit`
mkdir $(riscv_dir)
cd riscv-fesvr; mkdir build; cd build; ../configure --prefix=$(riscv_dir) --target=riscv64-unknown-elf; make install

TestHarness.h:
cd ../essent; sbt 'run ../boom/boom.system.TestHarness.BoomConfig.fir'

emulator: emulator.cc TestHarness.h riscv/lib/libfesvr.so
$(CXX) $(CXXFLAGS) $(INCLUDES) emulator.cc -o emulator $(LIBS)
1 change: 1 addition & 0 deletions boom/boom-template.commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e2a41ddc2a325850eaf1cabb353eed9728adfb8f
File renamed without changes.
Binary file added boom/dhrystone-boom.riscv
Binary file not shown.
File renamed without changes.
1 change: 1 addition & 0 deletions boom/fesvr.commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
68c12d06ebbdfe20856b886570822fe66804fd26
1 change: 1 addition & 0 deletions boom/riscv-fesvr
Submodule riscv-fesvr added at 68c12d
26 changes: 0 additions & 26 deletions rocket/Makefile

This file was deleted.

0 comments on commit 6947f2e

Please sign in to comment.