mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Pad linux raw testvectors before reversing
This commit is contained in:
parent
5bbaf2d95d
commit
43d0510bc7
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user