mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-04-19 11:34:50 -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"
|
||||
|
||||
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…
Add table
Reference in a new issue