Skip to content

Commit

Permalink
Merge #30
Browse files Browse the repository at this point in the history
30: add riscv32i target r=Disasm a=sbourdeauducq

This adds support for the simplest RISC-V processor possible, which is useful e.g. for experimenting with  FPGA softcore implementations.

Co-authored-by: Sebastien Bourdeauducq <[email protected]>
  • Loading branch information
bors[bot] and sbourdeauducq committed Jul 27, 2019
2 parents 7f1e4a5 + b53e0a5 commit 4094a32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assemble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ crate=riscv
# remove existing blobs because otherwise this will append object files to the old blobs
rm -f bin/*.a

riscv64-unknown-elf-gcc -c -mabi=ilp32 -march=rv32i asm.S -o bin/$crate.o
ar crs bin/riscv32i-unknown-none-elf.a bin/$crate.o

riscv64-unknown-elf-gcc -c -mabi=ilp32 -march=rv32imc asm.S -o bin/$crate.o
ar crs bin/riscv32imac-unknown-none-elf.a bin/$crate.o
ar crs bin/riscv32imc-unknown-none-elf.a bin/$crate.o
Expand Down
Binary file added bin/riscv32i-unknown-none-elf.a
Binary file not shown.

0 comments on commit 4094a32

Please sign in to comment.