RISC-V go closures

This implements go closures for RISC-V.  It has been tested on
riscv64-suse-linux and against the libgo testsuite.
This commit is contained in:
Andreas Schwab
2018-08-09 15:41:17 +02:00
parent 65da63abc8
commit 4cb776bc80
3 changed files with 129 additions and 13 deletions
+1
View File
@@ -59,6 +59,7 @@ typedef enum ffi_abi {
/* ---- Definitions for closures ----------------------------------------- */
#define FFI_CLOSURES 1
#define FFI_GO_CLOSURES 1
#define FFI_TRAMPOLINE_SIZE 24
#define FFI_NATIVE_RAW_API 0
#define FFI_EXTRA_CIF_FIELDS unsigned riscv_nfixedargs; unsigned riscv_unused;