New RISC-V port (#281)

* Add RISC-V support

This patch adds support for the RISC-V architecture (https://riscv.org).

This patch has been tested using QEMU user-mode emulation and GCC 7.2.0
in the following configurations:

* -march=rv32imac -mabi=ilp32
* -march=rv32g -mabi=ilp32d
* -march=rv64imac -mabi=lp64
* -march=rv64g -mabi=lp64d

The ABI currently can be found at
https://github.com/riscv/riscv-elf-psabi-doc/blob/master/riscv-elf.md .

* Add RISC-V to README

* RISC-V: fix configure.host
This commit is contained in:
Stef O'Rear
2018-03-11 08:55:15 -04:00
committed by Anthony Green
parent dca52b55bc
commit 3840d49aaa
7 changed files with 739 additions and 0 deletions
+3
View File
@@ -84,6 +84,8 @@ tested:
| PowerPC 64-bit | FreeBSD | GCC |
| PowerPC 64-bit | Linux ELFv1 | GCC |
| PowerPC 64-bit | Linux ELFv2 | GCC |
| RISC-V 32-bit | Linux | GCC |
| RISC-V 64-bit | Linux | GCC |
| S390 | Linux | GCC |
| S390X | Linux | GCC |
| SPARC | Linux | GCC |
@@ -188,6 +190,7 @@ See the git log for details at http://github.com/libffi/libffi.
4.0 TBD
New API in support of GO closures.
Add RISC-V support.
3.2.1 Nov-12-14
Build fix for non-iOS AArch64 targets.