Improve exception dumps and general debug info, make the emulator capable of running the riscv ISA tests, and perform some general fixes i found while making it pass the tests for RV64I

This commit is contained in:
2025-12-30 20:18:23 +01:00
parent 6a0e5e63c1
commit 5a383956c9
6 changed files with 36 additions and 7 deletions

12
run-riscv-tests.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
for f in $(cat torun.txt); do
result=$(cargo run $f 2>&1 | tail -n 1 | awk '{print $NF}')
if [[ $result != 0 ]]; then
testnum=$(( result >> 1 ))
echo $f: test $testnum failed
exit 1
fi
done
echo all tests passed