-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[toolchain] Use PGO for verilator build
PGO allows the C++ compiler to better optimize the build. This cuts all our simulation time in half at the low cost of a one-time image build
- Loading branch information
Showing
2 changed files
with
71 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/target/common/common.mk b/target/common/common.mk | ||
index 55b0c17..ca4da09 100644 | ||
--- a/target/common/common.mk | ||
+++ b/target/common/common.mk | ||
@@ -171,7 +171,7 @@ define VERILATE | ||
$(BENDER) script verilator ${VLT_BENDER} > $(dir $@)files | ||
$(VLT) \ | ||
--Mdir $(dir $@) -f $(dir $@)files $(VLT_FLAGS) \ | ||
- -j $(shell nproc) --cc --build --top-module $(1) | ||
+ --cc -j 0 -build-jobs 0 --build --top-module $(1) | ||
touch $@ | ||
endef | ||
|