2022-01-07 04:07:04 +00:00
|
|
|
#!/bin/bash
|
2022-01-05 16:44:01 +00:00
|
|
|
|
|
|
|
# james.stine@okstate.edu 4 Jan 2022
|
|
|
|
# Script to run elf2hex for memfile for
|
|
|
|
# Imperas and riscv-arch-test benchmarks
|
|
|
|
|
|
|
|
for file in work/rv64i_m/*/*.elf ; do
|
|
|
|
memfile=${file%.elf}.elf.memfile
|
2022-01-05 22:10:26 +00:00
|
|
|
echo riscv64-unknown-elf-elf2hex --bit-width 64 --input "$file"
|
2022-01-05 16:44:01 +00:00
|
|
|
riscv64-unknown-elf-elf2hex --bit-width 64 --input "$file" --output "$memfile"
|
|
|
|
done
|
|
|
|
|
|
|
|
for file in work/rv32i_m/*/*.elf ; do
|
|
|
|
memfile=${file%.elf}.elf.memfile
|
2022-01-05 22:10:26 +00:00
|
|
|
echo riscv64-unknown-elf-elf2hex --bit-width 32 --input "$file"
|
2022-01-05 16:44:01 +00:00
|
|
|
riscv64-unknown-elf-elf2hex --bit-width 32 --input "$file" --output "$memfile"
|
|
|
|
done
|