From cfc39ade80a6482a86ace949c9b0ee7cb7afa226 Mon Sep 17 00:00:00 2001 From: Tim Fischer Date: Thu, 5 Sep 2024 13:26:18 +0200 Subject: [PATCH] sim: Fix verilator flags --- target/common/common.mk | 4 ++-- target/common/verilator.mk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target/common/common.mk b/target/common/common.mk index 54a39bd77e..1791629903 100644 --- a/target/common/common.mk +++ b/target/common/common.mk @@ -89,9 +89,9 @@ VLT_FLAGS += -Wno-UNSIGNED VLT_FLAGS += -Wno-UNOPTFLAT VLT_FLAGS += -Wno-fatal VLT_FLAGS += --unroll-count 1024 -VLT_FLAGS += --threads $(VLT_NUM_THREADS) +VLT_FLAGS += --threads $(VLT_NUM_THREADS) VLT_CFLAGS += -std=c++20 -pthread -VLT_CFLAGS += -I $(VLT_ROOT)/include -I $(VLT_ROOT)/include/vltstd -I $(VLT_FESVR)/include -I $(TB_DIR) -I ${MKFILE_DIR}test +VLT_CFLAGS += $(VLT_FESVR)/include -I $(TB_DIR) -I ${MKFILE_DIR}test RISCV_MC_FLAGS ?= -disassemble -mcpu=snitch ANNOTATE_FLAGS ?= -q --keep-time --addr2line=$(ADDR2LINE) diff --git a/target/common/verilator.mk b/target/common/verilator.mk index dac3429077..cd711afeac 100644 --- a/target/common/verilator.mk +++ b/target/common/verilator.mk @@ -12,7 +12,7 @@ vlt-flist: $(BIN_DIR)/$(TARGET).vlt: $(VLT_SOURCES) $(TB_CC_SOURCES) $(VLT_CC_SOURCES) $(VLT_BUILDDIR)/lib/libfesvr.a | $(BIN_DIR) $(VLT) $(shell $(BENDER) script verilator $(VLT_BENDER)) \ - $(VLT_FLAGS) -Mdir $(VLT_BUILDDIR) \ + $(VLT_FLAGS) --Mdir $(VLT_BUILDDIR) \ -CFLAGS "$(VLT_CFLAGS)" \ -LDFLAGS "$(VLT_LDFLAGS)" \ -j $(VLT_JOBS) \