picker/example/XDummyCache/release-vcs.sh

11 lines
412 B
Bash
Executable File

#!/bin/bash
rm -rf ./picker_out
./build/bin/picker export example/XDummyCache/Cache.sv --autobuild true --sim vcs -w XDumyCache.fsdb --sname XDumyCache --tdir ./picker_out/temp --sdir template $@
if [[ $@ == *"python"* ]]; then
cd ./picker_out/temp
echo "'cannot allocate memory in static TLS block'error for VCS is expected, please ignore it"
LD_PRELOAD=./libUTXDumyCache.so python3 example.py
fi