mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
help in case a script is run accidentally
This commit is contained in:
parent
a13b561759
commit
0646bf2b90
@ -15,4 +15,11 @@ outDir="../linux-testvectors"
|
|||||||
|
|
||||||
# - Logs info needed by buildroot testbench
|
# - Logs info needed by buildroot testbench
|
||||||
|
|
||||||
($customQemu -M virt -nographic -bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio -rtc clock=vm -icount shift=1 -d nochain,cpu,in_asm -serial /dev/null -singlestep -gdb tcp::1236 -S 2>&1 >/dev/null | ./parse_qemu.py | ./parseNew.py | ./remove_dup.awk > $outDir/all.txt) & riscv64-unknown-elf-gdb -x gdbinit_qemulog
|
read -p "Warning: running this script will overwrite the contents of $outDir/all.txt.
|
||||||
|
Would you like to proceed? (y/n) " -n 1 -r
|
||||||
|
echo
|
||||||
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
|
then
|
||||||
|
($customQemu -M virt -nographic -bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio -rtc clock=vm -icount shift=1 -d nochain,cpu,in_asm -serial /dev/null -singlestep -gdb tcp::1236 -S 2>&1 >/dev/null | ./parse_qemu.py | ./parseNew.py | ./remove_dup.awk > $outDir/all.txt) & riscv64-unknown-elf-gdb -x gdbinit_qemulog
|
||||||
|
fi
|
||||||
|
|
||||||
|
@ -8,14 +8,20 @@ customQemu="/courses/e190ax/qemu_sim/rv64_initrd/qemu_experimental/qemu/build/qe
|
|||||||
imageDir="../buildroot-image-output"
|
imageDir="../buildroot-image-output"
|
||||||
testVecDir="../linux-testvectors"
|
testVecDir="../linux-testvectors"
|
||||||
|
|
||||||
($customQemu -M virt -nographic -bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio -d nochain,cpu,in_asm -serial /dev/null -singlestep -gdb tcp::1235 -S 2>/dev/null >/dev/null) &
|
read -p "Warning: running this script will overwrite the contents of memory dumps needed for simulation.
|
||||||
riscv64-unknown-elf-gdb -x gdbinit_mem
|
Would you like to proceed? (y/n) " -n 1 -r
|
||||||
echo "Translating Mem from GDB to Questa format"
|
echo
|
||||||
./fix_mem.py
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
echo "Done"
|
then
|
||||||
|
($customQemu -M virt -nographic -bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio -d nochain,cpu,in_asm -serial /dev/null -singlestep -gdb tcp::1235 -S 2>/dev/null >/dev/null) &
|
||||||
|
riscv64-unknown-elf-gdb -x gdbinit_mem
|
||||||
|
echo "Translating Mem from GDB to Questa format"
|
||||||
|
./fix_mem.py
|
||||||
|
echo "Done"
|
||||||
|
|
||||||
echo "Creating debugging objdump of linux image"
|
echo "Creating debugging objdump of linux image"
|
||||||
|
|
||||||
riscv64-unknown-elf-objdump -D $imageDir/vmlinux > $testVecDir/vmlinux.objdump
|
riscv64-unknown-elf-objdump -D $imageDir/vmlinux > $testVecDir/vmlinux.objdump
|
||||||
extractFunctionRadix.sh $testVecDir/vmlinux.objdump
|
extractFunctionRadix.sh $testVecDir/vmlinux.objdump
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user