diff --git a/emulator/Makefile b/emulator/Makefile index dcc9b393..9aee51fd 100644 --- a/emulator/Makefile +++ b/emulator/Makefile @@ -70,7 +70,9 @@ test: # Run assembly tests and benchmarks #-------------------------------------------------------------------- +ifneq ($(MAKECMDGOALS),clean) -include $(generated_dir)/$(MODEL).$(CONFIG).d +endif $(output_dir)/%.run: $(output_dir)/%.hex emulator-$(MODEL)-$(CONFIG) ./$(emu) +dramsim +max-cycles=$(timeout_cycles) +loadmem=$< none 2> /dev/null 2> $@ && [ $$PIPESTATUS -eq 0 ] diff --git a/vsim/Makefile b/vsim/Makefile index 84024df1..956d1ca4 100644 --- a/vsim/Makefile +++ b/vsim/Makefile @@ -21,7 +21,9 @@ TB ?= rocketTestHarness include $(base_dir)/Makefrag include $(sim_dir)/Makefrag +ifneq ($(MAKECMDGOALS),clean) -include $(generated_dir)/$(MODEL).$(CONFIG).d +endif include $(base_dir)/vsim/Makefrag-verilog all: $(simv)