summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/verilator.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/verilator.mk b/mk/verilator.mk
index 0205e74..56d8783 100644
--- a/mk/verilator.mk
+++ b/mk/verilator.mk
@@ -37,7 +37,7 @@ define prepare_verilator_target
endef
define setup_verilator_target
- $(call build_vars,$(addprefix enable_,rand threads trace cov opt lto))
+ $(call build_vars,$(addprefix enable_,rand threads trace cov opt lto prof))
$(call target_var,vl_flags) = $(common_vl_flags)
$(call target_var,vl_cflags) = $(common_vl_cflags)
@@ -61,6 +61,7 @@ define set_verilator_common
$$(if $$(enable_trace),--trace --trace-fst --trace-structs) \
$$(if $$(enable_cov),--coverage) \
$$(if $$(enable_opt),-O3) \
+ $$(if $$(enable_prof),--prof-cfuncs) \
--cc --exe --prefix Vtop --MMD --MP
common_vl_flags := $$(static_flags) $$(core_info/$$(rule_top)/vl_flags)