make default flags include timeout | all sims share flags

This commit is contained in:
abejgonzalez
2019-05-24 09:47:50 -07:00
parent bc54b24b85
commit 4af9ea9846
2 changed files with 3 additions and 3 deletions

View File

@@ -86,10 +86,10 @@ $(output_dir)/%: $(RISCV)/riscv64-unknown-elf/share/riscv-tests/isa/%
ln -sf $< $@ ln -sf $< $@
$(output_dir)/%.run: $(output_dir)/% $(sim) $(output_dir)/%.run: $(output_dir)/% $(sim)
$(sim) $(PERMISSIVE_ON) +max-cycles=$(timeout_cycles) $(PERMISSIVE_OFF) $< && touch $@ $(sim) $(PERMISSIVE_ON) $(SIM_FLAGS) $(PERMISSIVE_OFF) $< && touch $@
$(output_dir)/%.out: $(output_dir)/% $(sim) $(output_dir)/%.out: $(output_dir)/% $(sim)
$(sim) $(PERMISSIVE_ON) +verbose +max-cycles=$(timeout_cycles) $(PERMISSIVE_OFF) $< 3>&1 1>&2 2>&3 | spike-dasm > $@ $(sim) $(PERMISSIVE_ON) $(SIM_FLAGS) $(PERMISSIVE_OFF) $< 3>&1 1>&2 2>&3 | spike-dasm > $@
######################################################################################### #########################################################################################
# include build/project specific makefrags made from the generator # include build/project specific makefrags made from the generator

View File

@@ -147,7 +147,7 @@ output_dir=$(sim_dir)/output/$(long_name)
# helper variables to run binaries # helper variables to run binaries
######################################################################################### #########################################################################################
BINARY ?= BINARY ?=
SIM_FLAGS ?= +verbose SIM_FLAGS ?= +verbose +max-cycles=$(timeout_cycles)
sim_out_name = $(notdir $(basename $(BINARY))).$(long_name) sim_out_name = $(notdir $(basename $(BINARY))).$(long_name)
######################################################################################### #########################################################################################