mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-06-28 01:32:49 -04:00
Pad linux raw testvectors before reversing
This commit is contained in:
parent
5bbaf2d95d
commit
43d0510bc7
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,10 @@ echo "Launching QEMU in replay mode!"
|
||||||
-ex "q"
|
-ex "q"
|
||||||
|
|
||||||
echo "Changing Endianness"
|
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 "$rawRamFile" "$ramFile"
|
||||||
objcopy --reverse-bytes=8 -F binary "$rawBootmemFile" "$bootmemFile"
|
objcopy --reverse-bytes=8 -F binary "$rawBootmemFile" "$bootmemFile"
|
||||||
rm -f "$rawRamFile" "$rawBootmemFile" "$rawUntrimmedBootmemFile"
|
rm -f "$rawRamFile" "$rawBootmemFile" "$rawUntrimmedBootmemFile"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue