From 36fa1efcb61196f58d4a8b22e335b4e3565e809d Mon Sep 17 00:00:00 2001 From: chick Date: Mon, 4 Oct 2021 20:34:44 -0700 Subject: [PATCH] Remove $(sim) targets in order to facilitate caching with GA The simulations binaries have been built and all we want is the cached binaries. We don't need all the files building the sim depended on --- common.mk | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/common.mk b/common.mk index 1fa626cf..efa36a0f 100644 --- a/common.mk +++ b/common.mk @@ -192,11 +192,15 @@ ifeq (,$(BINARY)) endif # run normal binary with hardware-logged insn dissassembly -run-binary: $(output_dir) $(sim) check-binary +#TODO: maybe put this back, this is a test of minimum caching in CI +#run-binary: $(output_dir) $(sim) check-binary +run-binary: $(output_dir) check-binary (set -o pipefail && $(NUMA_PREFIX) $(sim) $(PERMISSIVE_ON) $(SIM_FLAGS) $(EXTRA_SIM_FLAGS) $(SEED_FLAG) $(VERBOSE_FLAGS) $(PERMISSIVE_OFF) $(BINARY) >(spike-dasm > $(sim_out_name).out) | tee $(sim_out_name).log) # run simulator as fast as possible (no insn disassembly) -run-binary-fast: $(output_dir) $(sim) check-binary +#TODO: maybe put this back, this is a test of minimum caching in CI +#run-binary-fast: $(output_dir) $(sim) check-binary +run-binary-fast: $(output_dir) check-binary (set -o pipefail && $(NUMA_PREFIX) $(sim) $(PERMISSIVE_ON) $(SIM_FLAGS) $(EXTRA_SIM_FLAGS) $(SEED_FLAG) $(PERMISSIVE_OFF) $(BINARY) $(binary_hex) run-binary-hex: check-binary +#TODO: Restore this or figure out a better caching run-binary-hex: $(output_dir) $(sim) $(binary_hex) run-binary-hex: $(output_dir) $(sim) $(binary_hex) run-binary-hex: run-binary run-binary-hex: override LOADMEM_ADDR = 80000000 run-binary-hex: override LOADMEM = $(binary_hex) run-binary-hex: override SIM_FLAGS += +loadmem=$(LOADMEM) +loadmem_addr=$(LOADMEM_ADDR) run-binary-debug-hex: check-binary +#TODO: Restore this or figure out a better caching run-binary-debug-hex: $(output_dir) $(sim) $(binary_hex) run-binary-debug-hex: $(output_dir) $(sim) $(binary_hex) run-binary-debug-hex: run-binary-debug run-binary-debug-hex: override LOADMEM_ADDR = 80000000 run-binary-debug-hex: override LOADMEM = $(binary_hex) run-binary-debug-hex: override SIM_FLAGS += +loadmem=$(LOADMEM) +loadmem_addr=$(LOADMEM_ADDR) run-binary-fast-hex: check-binary -run-binary-fast-hex: $(output_dir) $(sim) $(binary_hex) +#TODO: put this back run-binary-fast-hex: $(output_dir) $(sim) $(binary_hex) +run-binary-fast-hex: $(output_dir) $(binary_hex) run-binary-fast-hex: run-binary-fast run-binary-fast-hex: override LOADMEM_ADDR = 80000000 run-binary-fast-hex: override LOADMEM = $(binary_hex) @@ -239,10 +246,12 @@ $(output_dir): $(output_dir)/%: $(RISCV)/riscv64-unknown-elf/share/riscv-tests/isa/% $(output_dir) ln -sf $< $@ -$(output_dir)/%.run: $(output_dir)/% $(sim) +#$(output_dir)/%.run: $(output_dir)/% $(sim) +$(output_dir)/%.run: $(output_dir)/% (set -o pipefail && $(NUMA_PREFIX) $(sim) $(PERMISSIVE_ON) $(SIM_FLAGS) $(EXTRA_SIM_FLAGS) $(SEED_FLAG) $(PERMISSIVE_OFF) $< >(spike-dasm > $@) | tee $<.log) #########################################################################################