From def11e44b8e3f6633083b50894d7c25bdfc3cd2b Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Mon, 25 Mar 2013 17:01:13 -0700 Subject: [PATCH] don't pipe stdout to vcd2vpd --- csrc/emulator.cc | 1 + emulator/Makefile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/csrc/emulator.cc b/csrc/emulator.cc index c1fee2a4..c5d408b3 100644 --- a/csrc/emulator.cc +++ b/csrc/emulator.cc @@ -9,6 +9,7 @@ #include #include #include +#include htif_emulator_t* htif; void handle_sigterm(int sig) diff --git a/emulator/Makefile b/emulator/Makefile index 7e8f5443..6327fa7e 100644 --- a/emulator/Makefile +++ b/emulator/Makefile @@ -75,7 +75,8 @@ output/%.out: output/%.hex emulator output/%.vpd: output/%.hex emulator-debug rm -rf $@.vcd && mkfifo $@.vcd - ./emulator-debug +dramsim +max-cycles=3000000 +verbose -v$@.vcd +coremap-random +loadmem=$< none 2> $(patsubst %.vpd,%.out,$@) | vcd2vpd $@.vcd $@ > /dev/null && [ $$PIPESTATUS -eq 0 ] + vcd2vpd $@.vcd $@ > /dev/null & + ./emulator-debug +dramsim +max-cycles=3000000 +verbose -v$@.vcd +coremap-random +loadmem=$< none 2> $(patsubst %.vpd,%.out,$@) run-asm-tests: $(addprefix output/, $(addsuffix .out, $(global_asm_tests) $(global_asm_vm_tests))) @echo; perl -ne 'print " [$$1] $$ARGV \t$$2\n" if /\*{3}(.{8})\*{3}(.*)/' $^; echo;