Pad linux raw testvectors before reversing

This commit is contained in:
Jordan Carlin 2024-11-09 17:32:43 -08:00
parent 5bbaf2d95d
commit 43d0510bc7
No known key found for this signature in database

View File

@ -46,6 +46,10 @@ echo "Launching QEMU in replay mode!"
-ex "q"
echo "Changing Endianness"
# Extend files to 8 byte multiple
truncate -s %8 "$rawRamFile"
truncate -s %8 "$rawBootmemFile"
# Reverse bytes
objcopy --reverse-bytes=8 -F binary "$rawRamFile" "$ramFile"
objcopy --reverse-bytes=8 -F binary "$rawBootmemFile" "$bootmemFile"
rm -f "$rawRamFile" "$rawBootmemFile" "$rawUntrimmedBootmemFile"