Coherence torture test for VM tests
authorAndrew Waterman <waterman@cs.berkeley.edu>
Tue, 7 Jul 2015 00:07:02 +0000 (17:07 -0700)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Tue, 7 Jul 2015 00:07:02 +0000 (17:07 -0700)
VM tests only support one core, so have the other cores hammer on the
memory system to attempt to catch simple coherence regressions.

env
isa/Makefile

diff --git a/env b/env
index 4f3e3a8d62cc88040846436b9c505045f7303d88..93cc8bffa3244a8ab4b507594d453faeb344d3d9 160000 (submodule)
--- a/env
+++ b/env
@@ -1 +1 @@
-Subproject commit 4f3e3a8d62cc88040846436b9c505045f7303d88
+Subproject commit 93cc8bffa3244a8ab4b507594d453faeb344d3d9
index e4606d53bf0b0ceaa2d75734c504e134ad975492..8f174d14e3ac639f4aac50f7ea48ff09dd70fc47 100644 (file)
@@ -22,8 +22,9 @@ default: all
 
 RISCV_PREFIX=riscv64-unknown-elf-
 RISCV_GCC = $(RISCV_PREFIX)gcc
-RISCV_GCC_OPTS = -static -fpic -fvisibility=hidden -nostdlib -nostartfiles -Wa,-march=RVIMAFDXhwacha
-RISCV_OBJDUMP = $(RISCV_PREFIX)objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.data
+ENTROPY = -DENTROPY=$(shell echo $$$$)
+RISCV_GCC_OPTS = $(ENTROPY) -static -fpic -fvisibility=hidden -nostdlib -nostartfiles -Wa,-march=RVIMAFDXhwacha
+RISCV_OBJDUMP = $(RISCV_PREFIX)objdump --disassemble-all --disassemble-zeroes --section=.text --section=.text.startup --section=.text.init --section=.data
 RISCV_SIM = spike --extension=hwacha
 
 vpath %.S $(isa_src_dir)