浏览代码

Merge #30

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 <sb@m-labs.hk>
bors[bot] 5 年之前
父节点
当前提交
4094a32f43
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      assemble.sh
  2. 二进制
      bin/riscv32i-unknown-none-elf.a

+ 3 - 0
assemble.sh

@@ -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

二进制
bin/riscv32i-unknown-none-elf.a