Added dumptvs function to Linux makefile to create linux-testvectors in /opt/riscv directory

This commit is contained in:
slmnemo 2024-03-26 10:28:50 -07:00
parent d6b3fc0320
commit efb68e7eeb
2 changed files with 6 additions and 1 deletions

View file

@ -40,6 +40,11 @@ install:
sudo rm -rf $(RISCV)/$(BUILDROOT)
sudo mv $(BUILDROOT) $(RISCV)/$(BUILDROOT)
dumptvs:
export RISCV=$(RISCV)
mkdir -p ../linux-testvectors
cd testvector-generation; ./genInitMem.sh
# Temp rule for debugging
test:
echo $(shell find $(BUILDROOT)/output/build -maxdepth 2 -type d -regex ".*/linux-[0-9]+\.[0-9]+\.[0-9]+$$")

View file

@ -61,7 +61,7 @@ else:
def getBuildrootTC(boot):
INSTR_LIMIT = 1000000 # multiple of 100000; 4M is interesting because it gets into the kernel and enabling VM
MAX_EXPECTED = 246000000 # *** TODO: replace this with a search for the login prompt.
MAX_EXPECTED = 591000000 # *** TODO: replace this with a search for the login prompt.
if boot:
name="buildrootboot"
BRcmd="vsim > {} -c <<!\ndo wally.do buildroot buildroot-no-trace $RISCV 0 1 0\n!"