Browse Source

Make gen_icache script use only POSIX commands (#470)

The `seq` utility is not available in OpenBSD.

Co-authored-by: Anthony Coulter <riscv@anthonycoulter.name>
pull/474/head
anthony-coulter 6 years ago
committed by GitHub
parent
commit
b7c09621ea
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      riscv/gen_icache

5
riscv/gen_icache

@ -1,7 +1,8 @@
#!/bin/sh
n=$(($1-1))
for i in `seq 0 $n`
i=0
while [ $i -lt $1 ]
do
echo case $i: ICACHE_ACCESS\($i\)\;
i=$((i+1))
done
echo

Loading…
Cancel
Save