ffi 1.15.5 → 1.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +169 -0
- data/Gemfile +15 -3
- data/README.md +5 -3
- data/Rakefile +30 -12
- data/Steepfile +8 -0
- data/ext/ffi_c/AbstractMemory.c +99 -74
- data/ext/ffi_c/AbstractMemory.h +3 -2
- data/ext/ffi_c/ArrayType.c +51 -15
- data/ext/ffi_c/ArrayType.h +1 -0
- data/ext/ffi_c/Buffer.c +90 -33
- data/ext/ffi_c/Call.c +29 -12
- data/ext/ffi_c/Call.h +3 -2
- data/ext/ffi_c/DynamicLibrary.c +90 -27
- data/ext/ffi_c/Function.c +276 -110
- data/ext/ffi_c/Function.h +1 -0
- data/ext/ffi_c/FunctionInfo.c +81 -25
- data/ext/ffi_c/LastError.c +29 -11
- data/ext/ffi_c/MappedType.c +66 -23
- data/ext/ffi_c/MappedType.h +0 -2
- data/ext/ffi_c/MemoryPointer.c +36 -9
- data/ext/ffi_c/MethodHandle.c +7 -3
- data/ext/ffi_c/Pointer.c +82 -40
- data/ext/ffi_c/Pointer.h +1 -0
- data/ext/ffi_c/Struct.c +166 -84
- data/ext/ffi_c/Struct.h +7 -4
- data/ext/ffi_c/StructByValue.c +48 -16
- data/ext/ffi_c/StructLayout.c +259 -73
- data/ext/ffi_c/Type.c +120 -51
- data/ext/ffi_c/Type.h +3 -1
- data/ext/ffi_c/Types.c +8 -2
- data/ext/ffi_c/Types.h +0 -1
- data/ext/ffi_c/Variadic.c +71 -26
- data/ext/ffi_c/compat.h +22 -22
- data/ext/ffi_c/extconf.rb +19 -2
- data/ext/ffi_c/ffi.c +4 -0
- data/ext/ffi_c/libffi/LICENSE +1 -1
- data/ext/ffi_c/libffi/Makefile.am +28 -16
- data/ext/ffi_c/libffi/Makefile.in +138 -84
- data/ext/ffi_c/libffi/README.md +189 -108
- data/ext/ffi_c/libffi/acinclude.m4 +16 -112
- data/ext/ffi_c/libffi/{.travis/compile → compile} +4 -7
- data/ext/ffi_c/libffi/config.guess +695 -570
- data/ext/ffi_c/libffi/config.sub +217 -95
- data/ext/ffi_c/libffi/configure +4642 -3901
- data/ext/ffi_c/libffi/configure.ac +83 -33
- data/ext/ffi_c/libffi/configure.host +31 -12
- data/ext/ffi_c/libffi/doc/Makefile.in +13 -6
- data/ext/ffi_c/libffi/doc/libffi.texi +108 -36
- data/ext/ffi_c/libffi/doc/version.texi +4 -4
- data/ext/ffi_c/libffi/fficonfig.h.in +15 -50
- data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +144 -60
- data/ext/ffi_c/libffi/include/Makefile.am +1 -1
- data/ext/ffi_c/libffi/include/Makefile.in +14 -9
- data/ext/ffi_c/libffi/include/ffi.h.in +73 -60
- data/ext/ffi_c/libffi/include/ffi_cfi.h +23 -0
- data/ext/ffi_c/libffi/include/ffi_common.h +50 -2
- data/ext/ffi_c/libffi/include/tramp.h +45 -0
- data/ext/ffi_c/libffi/install-sh +92 -69
- data/ext/ffi_c/libffi/libffi.map.in +18 -1
- data/ext/ffi_c/libffi/libtool-version +2 -2
- data/ext/ffi_c/libffi/ltmain.sh +518 -333
- data/ext/ffi_c/libffi/m4/asmcfi.m4 +28 -11
- data/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +18 -14
- data/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +108 -72
- data/ext/ffi_c/libffi/m4/ax_check_compile_flag.m4 +13 -3
- data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +76 -45
- data/ext/ffi_c/libffi/m4/ax_prepend_flag.m4 +51 -0
- data/ext/ffi_c/libffi/man/Makefile.in +13 -6
- data/ext/ffi_c/libffi/missing +1 -1
- data/ext/ffi_c/libffi/msvc_build/aarch64/aarch64_include/ffi.h +2 -2
- data/ext/ffi_c/libffi/msvcc.sh +1 -1
- data/ext/ffi_c/libffi/src/aarch64/ffi.c +177 -57
- data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +2 -2
- data/ext/ffi_c/libffi/src/aarch64/internal.h +78 -0
- data/ext/ffi_c/libffi/src/aarch64/sysv.S +347 -93
- data/ext/ffi_c/libffi/src/arc/arcompact.S +169 -94
- data/ext/ffi_c/libffi/src/arc/ffi.c +328 -147
- data/ext/ffi_c/libffi/src/arc/ffitarget.h +14 -0
- data/ext/ffi_c/libffi/src/arm/ffi.c +62 -17
- data/ext/ffi_c/libffi/src/arm/ffitarget.h +3 -3
- data/ext/ffi_c/libffi/src/arm/internal.h +10 -0
- data/ext/ffi_c/libffi/src/arm/sysv.S +114 -43
- data/ext/ffi_c/libffi/src/closures.c +137 -51
- data/ext/ffi_c/libffi/src/debug.c +2 -2
- data/ext/ffi_c/libffi/src/dlmalloc.c +7 -1
- data/ext/ffi_c/libffi/src/ia64/ffi.c +12 -0
- data/ext/ffi_c/libffi/src/ia64/unix.S +20 -2
- data/ext/ffi_c/libffi/src/loongarch64/ffi.c +624 -0
- data/ext/ffi_c/libffi/src/loongarch64/ffitarget.h +82 -0
- data/ext/ffi_c/libffi/src/loongarch64/sysv.S +327 -0
- data/ext/ffi_c/libffi/src/m32r/ffi.c +31 -14
- data/ext/ffi_c/libffi/src/mips/ffi.c +250 -67
- data/ext/ffi_c/libffi/src/mips/ffitarget.h +9 -4
- data/ext/ffi_c/libffi/src/mips/n32.S +197 -33
- data/ext/ffi_c/libffi/src/mips/o32.S +65 -4
- data/ext/ffi_c/libffi/src/moxie/ffi.c +47 -22
- data/ext/ffi_c/libffi/src/or1k/ffi.c +27 -14
- data/ext/ffi_c/libffi/src/pa/ffi.c +32 -33
- data/ext/ffi_c/libffi/src/pa/ffi64.c +614 -0
- data/ext/ffi_c/libffi/src/pa/ffitarget.h +22 -8
- data/ext/ffi_c/libffi/src/pa/hpux32.S +83 -36
- data/ext/ffi_c/libffi/src/pa/hpux64.S +681 -0
- data/ext/ffi_c/libffi/src/pa/linux.S +86 -35
- data/ext/ffi_c/libffi/src/powerpc/ffi.c +19 -0
- data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +36 -24
- data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +27 -20
- data/ext/ffi_c/libffi/src/powerpc/ffi_sysv.c +26 -16
- data/ext/ffi_c/libffi/src/powerpc/internal.h +10 -0
- data/ext/ffi_c/libffi/src/powerpc/linux64.S +2 -0
- data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +49 -0
- data/ext/ffi_c/libffi/src/powerpc/ppc_closure.S +24 -0
- data/ext/ffi_c/libffi/src/powerpc/t-aix +5 -0
- data/ext/ffi_c/libffi/src/prep_cif.c +22 -5
- data/ext/ffi_c/libffi/src/riscv/ffi.c +74 -18
- data/ext/ffi_c/libffi/src/riscv/internal.h +7 -0
- data/ext/ffi_c/libffi/src/riscv/sysv.S +24 -0
- data/ext/ffi_c/libffi/src/s390/ffi.c +28 -1
- data/ext/ffi_c/libffi/src/s390/internal.h +11 -0
- data/ext/ffi_c/libffi/src/s390/sysv.S +38 -0
- data/ext/ffi_c/libffi/src/sparc/ffi.c +16 -0
- data/ext/ffi_c/libffi/src/sparc/ffi64.c +23 -1
- data/ext/ffi_c/libffi/src/tramp.c +721 -0
- data/ext/ffi_c/libffi/src/types.c +26 -6
- data/ext/ffi_c/libffi/src/wasm/ffi.c +798 -0
- data/ext/ffi_c/libffi/src/wasm/ffitarget.h +79 -0
- data/ext/ffi_c/libffi/src/x86/ffi.c +102 -37
- data/ext/ffi_c/libffi/src/x86/ffi64.c +71 -13
- data/ext/ffi_c/libffi/src/x86/ffitarget.h +6 -5
- data/ext/ffi_c/libffi/src/x86/ffiw64.c +44 -1
- data/ext/ffi_c/libffi/src/x86/internal.h +14 -0
- data/ext/ffi_c/libffi/src/x86/internal64.h +14 -0
- data/ext/ffi_c/libffi/src/x86/sysv.S +173 -41
- data/ext/ffi_c/libffi/src/x86/sysv_intel.S +92 -91
- data/ext/ffi_c/libffi/src/x86/unix64.S +96 -6
- data/ext/ffi_c/libffi/src/x86/win64.S +20 -7
- data/ext/ffi_c/libffi/src/xtensa/ffi.c +16 -8
- data/ext/ffi_c/libffi/src/xtensa/ffitarget.h +4 -0
- data/ext/ffi_c/libffi/src/xtensa/sysv.S +26 -16
- data/ext/ffi_c/libffi/testsuite/Makefile.in +95 -121
- data/ext/ffi_c/libffi.bsd.mk +2 -2
- data/ext/ffi_c/libffi.darwin.mk +2 -2
- data/ext/ffi_c/libffi.gnu.mk +2 -2
- data/ext/ffi_c/libffi.mk +5 -0
- data/ext/ffi_c/rbffi.h +1 -1
- data/ffi.gemspec +9 -8
- data/lib/ffi/autopointer.rb +14 -31
- data/lib/ffi/compat.rb +54 -0
- data/lib/ffi/data_converter.rb +2 -2
- data/lib/ffi/dynamic_library.rb +118 -0
- data/lib/ffi/enum.rb +18 -12
- data/lib/ffi/ffi.rb +62 -0
- data/lib/ffi/function.rb +94 -0
- data/lib/ffi/io.rb +2 -2
- data/lib/ffi/library.rb +88 -88
- data/lib/ffi/library_path.rb +109 -0
- data/lib/ffi/managedstruct.rb +1 -1
- data/lib/ffi/platform/aarch64-linux/types.conf +74 -3
- data/lib/ffi/platform/aarch64-windows/types.conf +52 -0
- data/lib/ffi/platform/hppa1.1-linux/types.conf +178 -0
- data/lib/ffi/platform/hppa2.0-linux/types.conf +178 -0
- data/lib/ffi/platform/loongarch64-linux/types.conf +141 -0
- data/lib/ffi/platform/sw_64-linux/types.conf +141 -0
- data/lib/ffi/platform.rb +15 -13
- data/lib/ffi/pointer.rb +6 -6
- data/lib/ffi/struct.rb +6 -5
- data/lib/ffi/struct_by_reference.rb +1 -1
- data/lib/ffi/struct_layout.rb +3 -3
- data/lib/ffi/struct_layout_builder.rb +9 -9
- data/lib/ffi/types.rb +65 -37
- data/lib/ffi/variadic.rb +19 -8
- data/lib/ffi/version.rb +1 -1
- data/samples/hello_ractor.rb +19 -0
- data/samples/qsort_ractor.rb +36 -0
- data/sig/ffi/abstract_memory.rbs +165 -0
- data/sig/ffi/auto_pointer.rbs +26 -0
- data/sig/ffi/buffer.rbs +18 -0
- data/sig/ffi/data_converter.rbs +10 -0
- data/sig/ffi/dynamic_library.rbs +9 -0
- data/sig/ffi/enum.rbs +38 -0
- data/sig/ffi/errno.rbs +8 -0
- data/sig/ffi/function.rbs +39 -0
- data/sig/ffi/library.rbs +42 -0
- data/sig/ffi/native_type.rbs +86 -0
- data/sig/ffi/platform.rbs +49 -0
- data/sig/ffi/pointer.rbs +42 -0
- data/sig/ffi/struct.rbs +76 -0
- data/sig/ffi/struct_by_reference.rbs +11 -0
- data/sig/ffi/struct_by_value.rbs +7 -0
- data/sig/ffi/struct_layout.rbs +9 -0
- data/sig/ffi/struct_layout_builder.rbs +5 -0
- data/sig/ffi/type.rbs +39 -0
- data/sig/ffi.rbs +29 -0
- data.tar.gz.sig +0 -0
- metadata +79 -299
- metadata.gz.sig +0 -0
- data/ext/ffi_c/libffi/.appveyor.yml +0 -66
- data/ext/ffi_c/libffi/.gitattributes +0 -4
- data/ext/ffi_c/libffi/.github/issue_template.md +0 -10
- data/ext/ffi_c/libffi/.gitignore +0 -38
- data/ext/ffi_c/libffi/.travis/ar-lib +0 -270
- data/ext/ffi_c/libffi/.travis/bfin-sim.exp +0 -58
- data/ext/ffi_c/libffi/.travis/build-cross-in-container.sh +0 -14
- data/ext/ffi_c/libffi/.travis/build-in-container.sh +0 -12
- data/ext/ffi_c/libffi/.travis/build.sh +0 -142
- data/ext/ffi_c/libffi/.travis/install.sh +0 -71
- data/ext/ffi_c/libffi/.travis/m32r-sim.exp +0 -58
- data/ext/ffi_c/libffi/.travis/moxie-sim.exp +0 -60
- data/ext/ffi_c/libffi/.travis/or1k-sim.exp +0 -58
- data/ext/ffi_c/libffi/.travis/powerpc-eabisim.exp +0 -58
- data/ext/ffi_c/libffi/.travis/site.exp +0 -27
- data/ext/ffi_c/libffi/.travis/wine-sim.exp +0 -55
- data/ext/ffi_c/libffi/.travis.yml +0 -83
- data/ext/ffi_c/libffi/src/nios2/ffi.c +0 -304
- data/ext/ffi_c/libffi/src/nios2/ffitarget.h +0 -52
- data/ext/ffi_c/libffi/src/nios2/sysv.S +0 -136
- data/ext/ffi_c/libffi/testsuite/Makefile.am +0 -122
- data/ext/ffi_c/libffi/testsuite/config/default.exp +0 -1
- data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +0 -660
- data/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +0 -283
- data/ext/ffi_c/libffi/testsuite/lib/wrapper.exp +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/Makefile +0 -28
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/README +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/alignof.h +0 -50
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/bhaible.exp +0 -63
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-call.c +0 -1745
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/test-callback.c +0 -2885
- data/ext/ffi_c/libffi/testsuite/libffi.bhaible/testcases.c +0 -743
- data/ext/ffi_c/libffi/testsuite/libffi.call/align_mixed.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.call/align_stdcall.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +0 -54
- data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c +0 -26
- data/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +0 -138
- data/ext/ffi_c/libffi/testsuite/libffi.call/float.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/float1.c +0 -60
- data/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.call/float3.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/float4.c +0 -62
- data/ext/ffi_c/libffi/testsuite/libffi.call/float_va.c +0 -107
- data/ext/ffi_c/libffi/testsuite/libffi.call/many.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/many2.c +0 -57
- data/ext/ffi_c/libffi/testsuite/libffi.call/many_double.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.call/many_mixed.c +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.call/negint.c +0 -52
- data/ext/ffi_c/libffi/testsuite/libffi.call/offsets.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.call/pr1172638.c +0 -127
- data/ext/ffi_c/libffi/testsuite/libffi.call/promotion.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/pyobjc-tc.c +0 -114
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl1.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl2.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl.c +0 -35
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl1.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl2.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl3.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ldl.c +0 -34
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c +0 -41
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll1.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_sc.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c +0 -38
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_uc.c +0 -38
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ul.c +0 -38
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen4.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct1.c +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct10.c +0 -57
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct2.c +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct3.c +0 -60
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct4.c +0 -64
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct5.c +0 -66
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct6.c +0 -64
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct7.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct8.c +0 -81
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct9.c +0 -68
- data/ext/ffi_c/libffi/testsuite/libffi.call/uninitialized.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +0 -196
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c +0 -121
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c +0 -123
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c +0 -125
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure.exp +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn0.c +0 -89
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn1.c +0 -81
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn2.c +0 -81
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn3.c +0 -82
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn4.c +0 -89
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn5.c +0 -92
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_fn6.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_loc_fn0.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.closures/closure_simple.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_12byte.c +0 -94
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_16byte.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_18byte.c +0 -96
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_19byte.c +0 -102
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_1_1byte.c +0 -89
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_20byte1.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_24byte.c +0 -113
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_2byte.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3_1byte.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte1.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3byte2.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_3float.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4_1byte.c +0 -98
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_4byte.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5_1_byte.c +0 -109
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_5byte.c +0 -98
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_64byte.c +0 -124
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6_1_byte.c +0 -113
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_6byte.c +0 -99
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7_1_byte.c +0 -117
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_7byte.c +0 -97
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_8byte.c +0 -88
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte1.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_9byte2.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_double.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_float.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble.c +0 -92
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split.c +0 -132
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_longdouble_split2.c +0 -115
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_pointer.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint16.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint32.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_sint64.c +0 -92
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint16.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint32.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_align_uint64.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_dbls_struct.c +0 -66
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_double.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_double_va.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_float.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble.c +0 -105
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_longdouble_va.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_args.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_many_mixed_float_double.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_schar.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshort.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_sshortchar.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_uchar.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushort.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_multi_ushortchar.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_pointer_stack.c +0 -142
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_schar.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sint.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_sshort.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_struct_va1.c +0 -114
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uchar_va.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_uint_va.c +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulong_va.c +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ulonglong.c +0 -47
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.closures/cls_ushort_va.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.closures/err_bad_abi.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.closures/ffitest.h +0 -138
- data/ext/ffi_c/libffi/testsuite/libffi.closures/huge_struct.c +0 -343
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct.c +0 -152
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct1.c +0 -161
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct10.c +0 -134
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct11.c +0 -121
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct2.c +0 -110
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct3.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct4.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct5.c +0 -112
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct6.c +0 -131
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct7.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct8.c +0 -131
- data/ext/ffi_c/libffi/testsuite/libffi.closures/nested_struct9.c +0 -131
- data/ext/ffi_c/libffi/testsuite/libffi.closures/problem1.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_large.c +0 -145
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_large2.c +0 -148
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium.c +0 -124
- data/ext/ffi_c/libffi/testsuite/libffi.closures/stret_medium2.c +0 -125
- data/ext/ffi_c/libffi/testsuite/libffi.closures/testclosure.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest.cc +0 -117
- data/ext/ffi_c/libffi/testsuite/libffi.closures/unwindtest_ffi_call.cc +0 -54
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex.inc +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex.inc +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct.inc +0 -71
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va.inc +0 -80
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_float.c +0 -16
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.exp +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.inc +0 -51
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_double.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_float.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_longdouble.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_int.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/ffitest.h +0 -1
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex.inc +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex.inc +0 -37
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1.inc +0 -41
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2.inc +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c +0 -34
- data/ext/ffi_c/libffi/testsuite/libffi.go/closure1.c +0 -28
- data/ext/ffi_c/libffi/testsuite/libffi.go/ffitest.h +0 -1
- data/ext/ffi_c/libffi/testsuite/libffi.go/go.exp +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.go/static-chain.h +0 -19
- data/lib/ffi/tools/types_generator.rb +0 -137
- data/rakelib/ffi_gem_helper.rb +0 -65
- /data/lib/ffi/platform/{sparc64-linux → sparcv9-linux}/types.conf +0 -0
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Copyright (C) 2010 Free Software Foundation, Inc.
|
|
2
|
-
#
|
|
3
|
-
# This file is part of DejaGnu.
|
|
4
|
-
#
|
|
5
|
-
# DejaGnu is free software; you can redistribute it and/or modify it
|
|
6
|
-
# under the terms of the GNU General Public License as published by
|
|
7
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
8
|
-
# (at your option) any later version.
|
|
9
|
-
#
|
|
10
|
-
# DejaGnu is distributed in the hope that it will be useful, but
|
|
11
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
-
# General Public License for more details.
|
|
14
|
-
#
|
|
15
|
-
# You should have received a copy of the GNU General Public License
|
|
16
|
-
# along with DejaGnu; if not, write to the Free Software Foundation,
|
|
17
|
-
# Inc., 51 Franklin Street, Fifth Floor, MA 02110, USA.
|
|
18
|
-
|
|
19
|
-
# This is a list of toolchains that are supported on this board.
|
|
20
|
-
set_board_info target_install {moxie-elf}
|
|
21
|
-
|
|
22
|
-
# Load the generic configuration for this board. This will define a basic set
|
|
23
|
-
# of routines needed by the tool to communicate with the board.
|
|
24
|
-
load_generic_config "sim"
|
|
25
|
-
|
|
26
|
-
# basic-sim.exp is a basic description for the standard Cygnus simulator.
|
|
27
|
-
load_base_board_description "basic-sim"
|
|
28
|
-
|
|
29
|
-
# "moxie" is the name of the sim subdir in devo/sim.
|
|
30
|
-
setup_sim moxie
|
|
31
|
-
|
|
32
|
-
# No multilib options needed by default.
|
|
33
|
-
process_multilib_options ""
|
|
34
|
-
|
|
35
|
-
# We only support newlib on this target. We assume that all multilib
|
|
36
|
-
# options have been specified before we get here.
|
|
37
|
-
|
|
38
|
-
set_board_info compiler "[find_gcc]"
|
|
39
|
-
set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
|
|
40
|
-
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"
|
|
41
|
-
# No linker script needed.
|
|
42
|
-
set_board_info ldscript "-Tsim.ld"
|
|
43
|
-
|
|
44
|
-
# Configuration settings for testsuites
|
|
45
|
-
set_board_info noargs 1
|
|
46
|
-
set_board_info gdb,nosignals 1
|
|
47
|
-
set_board_info gdb,noresults 1
|
|
48
|
-
set_board_info gdb,cannot_call_functions 1
|
|
49
|
-
set_board_info gdb,skip_float_tests 1
|
|
50
|
-
set_board_info gdb,can_reverse 1
|
|
51
|
-
set_board_info gdb,use_precord 1
|
|
52
|
-
|
|
53
|
-
# More time is needed
|
|
54
|
-
set_board_info gcc,timeout 800
|
|
55
|
-
set_board_info gdb,timeout 60
|
|
56
|
-
|
|
57
|
-
# Used by a few gcc.c-torture testcases to delimit how large the stack can
|
|
58
|
-
# be.
|
|
59
|
-
set_board_info gcc,stack_size 5000
|
|
60
|
-
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# Copyright (C) 2010, 2019 Free Software Foundation, Inc.
|
|
2
|
-
#
|
|
3
|
-
# This file is part of DejaGnu.
|
|
4
|
-
#
|
|
5
|
-
# DejaGnu is free software; you can redistribute it and/or modify it
|
|
6
|
-
# under the terms of the GNU General Public License as published by
|
|
7
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
8
|
-
# (at your option) any later version.
|
|
9
|
-
#
|
|
10
|
-
# DejaGnu is distributed in the hope that it will be useful, but
|
|
11
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
-
# General Public License for more details.
|
|
14
|
-
#
|
|
15
|
-
# You should have received a copy of the GNU General Public License
|
|
16
|
-
# along with DejaGnu; if not, write to the Free Software Foundation,
|
|
17
|
-
# Inc., 51 Franklin Street, Fifth Floor, MA 02110, USA.
|
|
18
|
-
|
|
19
|
-
# This is a list of toolchains that are supported on this board.
|
|
20
|
-
set_board_info target_install {or1k-elf}
|
|
21
|
-
|
|
22
|
-
# Load the generic configuration for this board. This will define a basic set
|
|
23
|
-
# of routines needed by the tool to communicate with the board.
|
|
24
|
-
load_generic_config "sim"
|
|
25
|
-
|
|
26
|
-
# basic-sim.exp is a basic description for the standard Cygnus simulator.
|
|
27
|
-
load_base_board_description "basic-sim"
|
|
28
|
-
|
|
29
|
-
# "or1k" is the name of the sim subdir in devo/sim.
|
|
30
|
-
setup_sim or1k
|
|
31
|
-
|
|
32
|
-
# No multilib options needed by default.
|
|
33
|
-
process_multilib_options ""
|
|
34
|
-
|
|
35
|
-
# We only support newlib on this target. We assume that all multilib
|
|
36
|
-
# options have been specified before we get here.
|
|
37
|
-
|
|
38
|
-
set_board_info compiler "[find_gcc]"
|
|
39
|
-
set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
|
|
40
|
-
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"
|
|
41
|
-
|
|
42
|
-
# Configuration settings for testsuites
|
|
43
|
-
set_board_info noargs 1
|
|
44
|
-
set_board_info gdb,nosignals 1
|
|
45
|
-
set_board_info gdb,noresults 1
|
|
46
|
-
set_board_info gdb,cannot_call_functions 1
|
|
47
|
-
set_board_info gdb,skip_float_tests 1
|
|
48
|
-
set_board_info gdb,can_reverse 1
|
|
49
|
-
set_board_info gdb,use_precord 1
|
|
50
|
-
|
|
51
|
-
# More time is needed
|
|
52
|
-
set_board_info gcc,timeout 800
|
|
53
|
-
set_board_info gdb,timeout 60
|
|
54
|
-
|
|
55
|
-
# Used by a few gcc.c-torture testcases to delimit how large the stack can
|
|
56
|
-
# be.
|
|
57
|
-
set_board_info gcc,stack_size 5000
|
|
58
|
-
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# Copyright (C) 2010, 2019 Free Software Foundation, Inc.
|
|
2
|
-
#
|
|
3
|
-
# This file is part of DejaGnu.
|
|
4
|
-
#
|
|
5
|
-
# DejaGnu is free software; you can redistribute it and/or modify it
|
|
6
|
-
# under the terms of the GNU General Public License as published by
|
|
7
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
8
|
-
# (at your option) any later version.
|
|
9
|
-
#
|
|
10
|
-
# DejaGnu is distributed in the hope that it will be useful, but
|
|
11
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
-
# General Public License for more details.
|
|
14
|
-
#
|
|
15
|
-
# You should have received a copy of the GNU General Public License
|
|
16
|
-
# along with DejaGnu; if not, write to the Free Software Foundation,
|
|
17
|
-
# Inc., 51 Franklin Street, Fifth Floor, MA 02110, USA.
|
|
18
|
-
|
|
19
|
-
# This is a list of toolchains that are supported on this board.
|
|
20
|
-
set_board_info target_install {powerpc-eabisim}
|
|
21
|
-
|
|
22
|
-
# Load the generic configuration for this board. This will define a basic set
|
|
23
|
-
# of routines needed by the tool to communicate with the board.
|
|
24
|
-
load_generic_config "sim"
|
|
25
|
-
|
|
26
|
-
# basic-sim.exp is a basic description for the standard Cygnus simulator.
|
|
27
|
-
load_base_board_description "basic-sim"
|
|
28
|
-
|
|
29
|
-
# "powerpc" is the name of the sim subdir in devo/sim.
|
|
30
|
-
setup_sim powerpc
|
|
31
|
-
|
|
32
|
-
# No multilib options needed by default.
|
|
33
|
-
process_multilib_options ""
|
|
34
|
-
|
|
35
|
-
# We only support newlib on this target. We assume that all multilib
|
|
36
|
-
# options have been specified before we get here.
|
|
37
|
-
|
|
38
|
-
set_board_info compiler "[find_gcc]"
|
|
39
|
-
set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
|
|
40
|
-
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"
|
|
41
|
-
|
|
42
|
-
# Configuration settings for testsuites
|
|
43
|
-
set_board_info noargs 1
|
|
44
|
-
set_board_info gdb,nosignals 1
|
|
45
|
-
set_board_info gdb,noresults 1
|
|
46
|
-
set_board_info gdb,cannot_call_functions 1
|
|
47
|
-
set_board_info gdb,skip_float_tests 1
|
|
48
|
-
set_board_info gdb,can_reverse 1
|
|
49
|
-
set_board_info gdb,use_precord 1
|
|
50
|
-
|
|
51
|
-
# More time is needed
|
|
52
|
-
set_board_info gcc,timeout 800
|
|
53
|
-
set_board_info gdb,timeout 60
|
|
54
|
-
|
|
55
|
-
# Used by a few gcc.c-torture testcases to delimit how large the stack can
|
|
56
|
-
# be.
|
|
57
|
-
set_board_info gcc,stack_size 5000
|
|
58
|
-
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Copyright (C) 2008, 2010, 2018, 2019 Anthony Green
|
|
2
|
-
|
|
3
|
-
# Make sure we look in the right place for the board description files.
|
|
4
|
-
if ![info exists boards_dir] {
|
|
5
|
-
set boards_dir {}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
lappend boards_dir $::env(TRAVIS_BUILD_DIR)/.travis
|
|
9
|
-
|
|
10
|
-
verbose "Global Config File: target_triplet is $target_triplet" 2
|
|
11
|
-
global target_list
|
|
12
|
-
|
|
13
|
-
case "$target_triplet" in {
|
|
14
|
-
{ "bfin-elf" } {
|
|
15
|
-
set target_list "bfin-sim"
|
|
16
|
-
}
|
|
17
|
-
{ "m32r-elf" } {
|
|
18
|
-
set target_list "m32r-sim"
|
|
19
|
-
}
|
|
20
|
-
{ "moxie-elf" } {
|
|
21
|
-
set target_list "moxie-sim"
|
|
22
|
-
}
|
|
23
|
-
{ "or1k-elf" } {
|
|
24
|
-
set target_list "or1k-sim"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# Copyright (C) 2010, 2019 Free Software Foundation, Inc.
|
|
2
|
-
#
|
|
3
|
-
# This file is part of DejaGnu.
|
|
4
|
-
#
|
|
5
|
-
# DejaGnu is free software; you can redistribute it and/or modify it
|
|
6
|
-
# under the terms of the GNU General Public License as published by
|
|
7
|
-
# the Free Software Foundation; either version 2 of the License, or
|
|
8
|
-
# (at your option) any later version.
|
|
9
|
-
#
|
|
10
|
-
# DejaGnu is distributed in the hope that it will be useful, but
|
|
11
|
-
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
-
# General Public License for more details.
|
|
14
|
-
#
|
|
15
|
-
# You should have received a copy of the GNU General Public License
|
|
16
|
-
# along with DejaGnu; if not, write to the Free Software Foundation,
|
|
17
|
-
# Inc., 51 Franklin Street, Fifth Floor, MA 02110, USA.
|
|
18
|
-
|
|
19
|
-
# This is a list of toolchains that are supported on this board.
|
|
20
|
-
set_board_info target_install {i686-w64-mingw32}
|
|
21
|
-
|
|
22
|
-
# Load the generic configuration for this board. This will define a basic set
|
|
23
|
-
# of routines needed by the tool to communicate with the board.
|
|
24
|
-
load_generic_config "sim"
|
|
25
|
-
|
|
26
|
-
set_board_info sim "wineconsole --backend=curses"
|
|
27
|
-
set_board_info is_simulator 1
|
|
28
|
-
|
|
29
|
-
# No multilib options needed by default.
|
|
30
|
-
process_multilib_options ""
|
|
31
|
-
|
|
32
|
-
# We only support newlib on this target. We assume that all multilib
|
|
33
|
-
# options have been specified before we get here.
|
|
34
|
-
|
|
35
|
-
set_board_info compiler "[find_gcc]"
|
|
36
|
-
set_board_info cflags "[libgloss_include_flags] [newlib_include_flags]"
|
|
37
|
-
set_board_info ldflags "[libgloss_link_flags] [newlib_link_flags]"
|
|
38
|
-
|
|
39
|
-
# Configuration settings for testsuites
|
|
40
|
-
set_board_info noargs 1
|
|
41
|
-
set_board_info gdb,nosignals 1
|
|
42
|
-
set_board_info gdb,noresults 1
|
|
43
|
-
set_board_info gdb,cannot_call_functions 1
|
|
44
|
-
set_board_info gdb,skip_float_tests 1
|
|
45
|
-
set_board_info gdb,can_reverse 1
|
|
46
|
-
set_board_info gdb,use_precord 1
|
|
47
|
-
|
|
48
|
-
# More time is needed
|
|
49
|
-
set_board_info gcc,timeout 800
|
|
50
|
-
set_board_info gdb,timeout 60
|
|
51
|
-
|
|
52
|
-
# Used by a few gcc.c-torture testcases to delimit how large the stack can
|
|
53
|
-
# be.
|
|
54
|
-
set_board_info gcc,stack_size 5000
|
|
55
|
-
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
sudo: required
|
|
3
|
-
|
|
4
|
-
language: cpp
|
|
5
|
-
|
|
6
|
-
# For qemu-powered targets, get the list of supported processors from
|
|
7
|
-
# travis by setting QEMU_CPU=help, then set -mcpu= for the compilers
|
|
8
|
-
# accordingly.
|
|
9
|
-
|
|
10
|
-
matrix:
|
|
11
|
-
include:
|
|
12
|
-
- os: linux
|
|
13
|
-
env: HOST=powerpc-eabisim RUNTESTFLAGS="--target_board powerpc-eabisim" DEJAGNU="/opt/.travis/site.exp"
|
|
14
|
-
- os: linux
|
|
15
|
-
env: HOST=or1k-elf RUNTESTFLAGS="--target_board or1k-sim" DEJAGNU="/opt/.travis/site.exp"
|
|
16
|
-
- os: linux
|
|
17
|
-
env: HOST=m32r-elf RUNTESTFLAGS="--target_board m32r-sim" DEJAGNU="/opt/.travis/site.exp"
|
|
18
|
-
- os: linux
|
|
19
|
-
env: HOST=bfin-elf RUNTESTFLAGS="--target_board bfin-sim" DEJAGNU="/opt/.travis/site.exp"
|
|
20
|
-
# This configuration is still using the native x86 toolchain?
|
|
21
|
-
# - os: osx
|
|
22
|
-
# env: HOST=aarch64-apple-darwin13
|
|
23
|
-
- os: osx
|
|
24
|
-
env: HOST=x86_64-apple-darwin10
|
|
25
|
-
- os: linux
|
|
26
|
-
env: HOST=x86_64-w64-mingw32 MEVAL='export CC="x86_64-w64-mingw32-gcc" && CXX="x86_64-w64-mingw32-g++" RUNTESTFLAGS="--target_board wine-sim" DEJAGNU="$TRAVIS_BUILD_DIR/.travis/site.exp" CONFIGURE_OPTIONS=--disable-shared LIBFFI_TEST_OPTIMIZATION="-O2"
|
|
27
|
-
- os: linux
|
|
28
|
-
env: HOST=sh4-linux-gnu CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/sh4-linux-gnu
|
|
29
|
-
- os: linux
|
|
30
|
-
env: HOST=alpha-linux-gnu CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/alpha-linux-gnu
|
|
31
|
-
- os: linux
|
|
32
|
-
env: HOST=m68k-linux-gnu MEVAL='export CC="m68k-linux-gnu-gcc-8 -mcpu=547x" && CXX="m68k-linux-gnu-g++-8 -mcpu=547x"' CONFIGURE_OPTIONS=--disable-shared QEMU_LD_PREFIX=/usr/m68k-linux-gnu QEMU_CPU=cfv4e
|
|
33
|
-
- os: linux
|
|
34
|
-
arch: s390x
|
|
35
|
-
env: HOST=s390x-linux-gnu
|
|
36
|
-
- os: linux
|
|
37
|
-
arch: ppc64le
|
|
38
|
-
env: HOST=ppc64le-linux-gnu
|
|
39
|
-
- os: linux
|
|
40
|
-
arch: arm64
|
|
41
|
-
env: HOST=aarch64-linux-gnu
|
|
42
|
-
- os: linux
|
|
43
|
-
arch: arm64
|
|
44
|
-
env: HOST=aarch64-linux-gnu
|
|
45
|
-
compiler: clang
|
|
46
|
-
- os: linux
|
|
47
|
-
env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O0"
|
|
48
|
-
- os: linux
|
|
49
|
-
env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O2"
|
|
50
|
-
- os: linux
|
|
51
|
-
env: HOST=arm32v7-linux-gnu LIBFFI_TEST_OPTIMIZATION="-O2 -fomit-frame-pointer"
|
|
52
|
-
# The sparc64 linux system in the GCC compile farm is non-responsive.
|
|
53
|
-
# - os: linux
|
|
54
|
-
# env: HOST=sparc64-linux-gnu
|
|
55
|
-
# The mips64 linux system in the GCC compile farm is not allowing logins
|
|
56
|
-
# - os: linux
|
|
57
|
-
# env: HOST=mips64el-linux-gnu
|
|
58
|
-
- os: linux
|
|
59
|
-
compiler: gcc
|
|
60
|
-
env: HOST=i386-pc-linux-gnu MEVAL='export CC="$CC -m32" && CXX="$CXX -m32"'
|
|
61
|
-
- os: linux
|
|
62
|
-
compiler: gcc
|
|
63
|
-
- os: linux
|
|
64
|
-
compiler: gcc
|
|
65
|
-
env: CONFIGURE_OPTIONS=--disable-shared
|
|
66
|
-
- os: linux
|
|
67
|
-
compiler: clang
|
|
68
|
-
- os: linux
|
|
69
|
-
compiler: clang
|
|
70
|
-
env: CONFIGURE_OPTIONS=--disable-shared
|
|
71
|
-
- os: linux
|
|
72
|
-
env: HOST=moxie-elf MEVAL='export PATH=/opt/moxielogic/bin:$PATH && CC=moxie-elf-gcc && CXX=moxie-elf-g++' LDFLAGS=-Tsim.ld RUNTESTFLAGS="--target_board moxie-sim" DEJAGNU="$TRAVIS_BUILD_DIR/.travis/site.exp"
|
|
73
|
-
|
|
74
|
-
before_install:
|
|
75
|
-
- if test x"$MEVAL" != x; then eval ${MEVAL}; fi
|
|
76
|
-
|
|
77
|
-
install:
|
|
78
|
-
- travis_wait 30 ./.travis/install.sh
|
|
79
|
-
|
|
80
|
-
script:
|
|
81
|
-
- if ! test x"$MEVAL" = x; then eval ${MEVAL}; fi
|
|
82
|
-
- travis_wait 115 sleep infinity &
|
|
83
|
-
- ./.travis/build.sh
|
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
/* libffi support for Altera Nios II.
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2013 Mentor Graphics.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
a copy of this software and associated documentation files (the
|
|
7
|
-
``Software''), to deal in the Software without restriction, including
|
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
|
14
|
-
included in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
#include <ffi.h>
|
|
26
|
-
#include <ffi_common.h>
|
|
27
|
-
|
|
28
|
-
#include <stdlib.h>
|
|
29
|
-
|
|
30
|
-
/* The Nios II Processor Reference Handbook defines the procedure call
|
|
31
|
-
ABI as follows.
|
|
32
|
-
|
|
33
|
-
Arguments are passed as if a structure containing the types of
|
|
34
|
-
the arguments were constructed. The first 16 bytes are passed in r4
|
|
35
|
-
through r7, the remainder on the stack. The first 16 bytes of a function
|
|
36
|
-
taking variable arguments are passed in r4-r7 in the same way.
|
|
37
|
-
|
|
38
|
-
Return values of types up to 8 bytes are returned in r2 and r3. For
|
|
39
|
-
return values greater than 8 bytes, the caller must allocate memory for
|
|
40
|
-
the result and pass the address as if it were argument 0.
|
|
41
|
-
|
|
42
|
-
While this isn't specified explicitly in the ABI documentation, GCC
|
|
43
|
-
promotes integral arguments smaller than int size to 32 bits.
|
|
44
|
-
|
|
45
|
-
Also of note, the ABI specifies that all structure objects are
|
|
46
|
-
aligned to 32 bits even if all their fields have a smaller natural
|
|
47
|
-
alignment. See FFI_AGGREGATE_ALIGNMENT. */
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
/* Declare the assembly language hooks. */
|
|
51
|
-
|
|
52
|
-
extern UINT64 ffi_call_sysv (void (*) (char *, extended_cif *),
|
|
53
|
-
extended_cif *,
|
|
54
|
-
unsigned,
|
|
55
|
-
void (*fn) (void));
|
|
56
|
-
extern void ffi_closure_sysv (void);
|
|
57
|
-
|
|
58
|
-
/* Perform machine-dependent cif processing. */
|
|
59
|
-
|
|
60
|
-
ffi_status ffi_prep_cif_machdep (ffi_cif *cif)
|
|
61
|
-
{
|
|
62
|
-
/* We always want at least 16 bytes in the parameter block since it
|
|
63
|
-
simplifies the low-level call function. Also round the parameter
|
|
64
|
-
block size up to a multiple of 4 bytes to preserve
|
|
65
|
-
32-bit alignment of the stack pointer. */
|
|
66
|
-
if (cif->bytes < 16)
|
|
67
|
-
cif->bytes = 16;
|
|
68
|
-
else
|
|
69
|
-
cif->bytes = (cif->bytes + 3) & ~3;
|
|
70
|
-
|
|
71
|
-
return FFI_OK;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
/* ffi_prep_args is called by the assembly routine to transfer arguments
|
|
76
|
-
to the stack using the pointers in the ecif array.
|
|
77
|
-
Note that the stack buffer is big enough to fit all the arguments,
|
|
78
|
-
but the first 16 bytes will be copied to registers for the actual
|
|
79
|
-
call. */
|
|
80
|
-
|
|
81
|
-
void ffi_prep_args (char *stack, extended_cif *ecif)
|
|
82
|
-
{
|
|
83
|
-
char *argp = stack;
|
|
84
|
-
unsigned int i;
|
|
85
|
-
|
|
86
|
-
/* The implicit return value pointer is passed as if it were a hidden
|
|
87
|
-
first argument. */
|
|
88
|
-
if (ecif->cif->rtype->type == FFI_TYPE_STRUCT
|
|
89
|
-
&& ecif->cif->rtype->size > 8)
|
|
90
|
-
{
|
|
91
|
-
(*(void **) argp) = ecif->rvalue;
|
|
92
|
-
argp += 4;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
for (i = 0; i < ecif->cif->nargs; i++)
|
|
96
|
-
{
|
|
97
|
-
void *avalue = ecif->avalue[i];
|
|
98
|
-
ffi_type *atype = ecif->cif->arg_types[i];
|
|
99
|
-
size_t size = atype->size;
|
|
100
|
-
size_t alignment = atype->alignment;
|
|
101
|
-
|
|
102
|
-
/* Align argp as appropriate for the argument type. */
|
|
103
|
-
if ((alignment - 1) & (unsigned) argp)
|
|
104
|
-
argp = (char *) FFI_ALIGN (argp, alignment);
|
|
105
|
-
|
|
106
|
-
/* Copy the argument, promoting integral types smaller than a
|
|
107
|
-
word to word size. */
|
|
108
|
-
if (size < sizeof (int))
|
|
109
|
-
{
|
|
110
|
-
size = sizeof (int);
|
|
111
|
-
switch (atype->type)
|
|
112
|
-
{
|
|
113
|
-
case FFI_TYPE_SINT8:
|
|
114
|
-
*(signed int *) argp = (signed int) *(SINT8 *) avalue;
|
|
115
|
-
break;
|
|
116
|
-
|
|
117
|
-
case FFI_TYPE_UINT8:
|
|
118
|
-
*(unsigned int *) argp = (unsigned int) *(UINT8 *) avalue;
|
|
119
|
-
break;
|
|
120
|
-
|
|
121
|
-
case FFI_TYPE_SINT16:
|
|
122
|
-
*(signed int *) argp = (signed int) *(SINT16 *) avalue;
|
|
123
|
-
break;
|
|
124
|
-
|
|
125
|
-
case FFI_TYPE_UINT16:
|
|
126
|
-
*(unsigned int *) argp = (unsigned int) *(UINT16 *) avalue;
|
|
127
|
-
break;
|
|
128
|
-
|
|
129
|
-
case FFI_TYPE_STRUCT:
|
|
130
|
-
memcpy (argp, avalue, atype->size);
|
|
131
|
-
break;
|
|
132
|
-
|
|
133
|
-
default:
|
|
134
|
-
FFI_ASSERT(0);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
else if (size == sizeof (int))
|
|
138
|
-
*(unsigned int *) argp = (unsigned int) *(UINT32 *) avalue;
|
|
139
|
-
else
|
|
140
|
-
memcpy (argp, avalue, size);
|
|
141
|
-
argp += size;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
/* Call FN using the prepared CIF. RVALUE points to space allocated by
|
|
147
|
-
the caller for the return value, and AVALUE is an array of argument
|
|
148
|
-
pointers. */
|
|
149
|
-
|
|
150
|
-
void ffi_call (ffi_cif *cif, void (*fn) (void), void *rvalue, void **avalue)
|
|
151
|
-
{
|
|
152
|
-
|
|
153
|
-
extended_cif ecif;
|
|
154
|
-
UINT64 result;
|
|
155
|
-
|
|
156
|
-
/* If bigret is true, this is the case where a return value of larger
|
|
157
|
-
than 8 bytes is handled by being passed by reference as an implicit
|
|
158
|
-
argument. */
|
|
159
|
-
int bigret = (cif->rtype->type == FFI_TYPE_STRUCT
|
|
160
|
-
&& cif->rtype->size > 8);
|
|
161
|
-
|
|
162
|
-
ecif.cif = cif;
|
|
163
|
-
ecif.avalue = avalue;
|
|
164
|
-
|
|
165
|
-
/* Allocate space for return value if this is the pass-by-reference case
|
|
166
|
-
and the caller did not provide a buffer. */
|
|
167
|
-
if (rvalue == NULL && bigret)
|
|
168
|
-
ecif.rvalue = alloca (cif->rtype->size);
|
|
169
|
-
else
|
|
170
|
-
ecif.rvalue = rvalue;
|
|
171
|
-
|
|
172
|
-
result = ffi_call_sysv (ffi_prep_args, &ecif, cif->bytes, fn);
|
|
173
|
-
|
|
174
|
-
/* Now result contains the 64 bit contents returned from fn in
|
|
175
|
-
r2 and r3. Copy the value of the appropriate size to the user-provided
|
|
176
|
-
rvalue buffer. */
|
|
177
|
-
if (rvalue && !bigret)
|
|
178
|
-
switch (cif->rtype->size)
|
|
179
|
-
{
|
|
180
|
-
case 1:
|
|
181
|
-
*(UINT8 *)rvalue = (UINT8) result;
|
|
182
|
-
break;
|
|
183
|
-
case 2:
|
|
184
|
-
*(UINT16 *)rvalue = (UINT16) result;
|
|
185
|
-
break;
|
|
186
|
-
case 4:
|
|
187
|
-
*(UINT32 *)rvalue = (UINT32) result;
|
|
188
|
-
break;
|
|
189
|
-
case 8:
|
|
190
|
-
*(UINT64 *)rvalue = (UINT64) result;
|
|
191
|
-
break;
|
|
192
|
-
default:
|
|
193
|
-
memcpy (rvalue, (void *)&result, cif->rtype->size);
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/* This function is invoked from the closure trampoline to invoke
|
|
199
|
-
CLOSURE with argument block ARGS. Parse ARGS according to
|
|
200
|
-
CLOSURE->cfi and invoke CLOSURE->fun. */
|
|
201
|
-
|
|
202
|
-
static UINT64
|
|
203
|
-
ffi_closure_helper (unsigned char *args,
|
|
204
|
-
ffi_closure *closure)
|
|
205
|
-
{
|
|
206
|
-
ffi_cif *cif = closure->cif;
|
|
207
|
-
unsigned char *argp = args;
|
|
208
|
-
void **parsed_args = alloca (cif->nargs * sizeof (void *));
|
|
209
|
-
UINT64 result;
|
|
210
|
-
void *retptr;
|
|
211
|
-
unsigned int i;
|
|
212
|
-
|
|
213
|
-
/* First figure out what to do about the return type. If this is the
|
|
214
|
-
big-structure-return case, the first arg is the hidden return buffer
|
|
215
|
-
allocated by the caller. */
|
|
216
|
-
if (cif->rtype->type == FFI_TYPE_STRUCT
|
|
217
|
-
&& cif->rtype->size > 8)
|
|
218
|
-
{
|
|
219
|
-
retptr = *((void **) argp);
|
|
220
|
-
argp += 4;
|
|
221
|
-
}
|
|
222
|
-
else
|
|
223
|
-
retptr = (void *) &result;
|
|
224
|
-
|
|
225
|
-
/* Fill in the array of argument pointers. */
|
|
226
|
-
for (i = 0; i < cif->nargs; i++)
|
|
227
|
-
{
|
|
228
|
-
size_t size = cif->arg_types[i]->size;
|
|
229
|
-
size_t alignment = cif->arg_types[i]->alignment;
|
|
230
|
-
|
|
231
|
-
/* Align argp as appropriate for the argument type. */
|
|
232
|
-
if ((alignment - 1) & (unsigned) argp)
|
|
233
|
-
argp = (char *) FFI_ALIGN (argp, alignment);
|
|
234
|
-
|
|
235
|
-
/* Arguments smaller than an int are promoted to int. */
|
|
236
|
-
if (size < sizeof (int))
|
|
237
|
-
size = sizeof (int);
|
|
238
|
-
|
|
239
|
-
/* Store the pointer. */
|
|
240
|
-
parsed_args[i] = argp;
|
|
241
|
-
argp += size;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
/* Call the user-supplied function. */
|
|
245
|
-
(closure->fun) (cif, retptr, parsed_args, closure->user_data);
|
|
246
|
-
return result;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
/* Initialize CLOSURE with a trampoline to call FUN with
|
|
251
|
-
CIF and USER_DATA. */
|
|
252
|
-
ffi_status
|
|
253
|
-
ffi_prep_closure_loc (ffi_closure* closure,
|
|
254
|
-
ffi_cif* cif,
|
|
255
|
-
void (*fun) (ffi_cif*, void*, void**, void*),
|
|
256
|
-
void *user_data,
|
|
257
|
-
void *codeloc)
|
|
258
|
-
{
|
|
259
|
-
unsigned int *tramp = (unsigned int *) &closure->tramp[0];
|
|
260
|
-
int i;
|
|
261
|
-
|
|
262
|
-
if (cif->abi != FFI_SYSV)
|
|
263
|
-
return FFI_BAD_ABI;
|
|
264
|
-
|
|
265
|
-
/* The trampoline looks like:
|
|
266
|
-
movhi r8, %hi(ffi_closure_sysv)
|
|
267
|
-
ori r8, r8, %lo(ffi_closure_sysv)
|
|
268
|
-
movhi r9, %hi(ffi_closure_helper)
|
|
269
|
-
ori r0, r9, %lo(ffi_closure_helper)
|
|
270
|
-
movhi r10, %hi(closure)
|
|
271
|
-
ori r10, r10, %lo(closure)
|
|
272
|
-
jmp r8
|
|
273
|
-
and then ffi_closure_sysv retrieves the closure pointer out of r10
|
|
274
|
-
in addition to the arguments passed in the normal way for the call,
|
|
275
|
-
and invokes ffi_closure_helper. We encode the pointer to
|
|
276
|
-
ffi_closure_helper in the trampoline because making a PIC call
|
|
277
|
-
to it in ffi_closure_sysv would be messy (it would have to indirect
|
|
278
|
-
through the GOT). */
|
|
279
|
-
|
|
280
|
-
#define HI(x) ((((unsigned int) (x)) >> 16) & 0xffff)
|
|
281
|
-
#define LO(x) (((unsigned int) (x)) & 0xffff)
|
|
282
|
-
tramp[0] = (0 << 27) | (8 << 22) | (HI (ffi_closure_sysv) << 6) | 0x34;
|
|
283
|
-
tramp[1] = (8 << 27) | (8 << 22) | (LO (ffi_closure_sysv) << 6) | 0x14;
|
|
284
|
-
tramp[2] = (0 << 27) | (9 << 22) | (HI (ffi_closure_helper) << 6) | 0x34;
|
|
285
|
-
tramp[3] = (9 << 27) | (9 << 22) | (LO (ffi_closure_helper) << 6) | 0x14;
|
|
286
|
-
tramp[4] = (0 << 27) | (10 << 22) | (HI (closure) << 6) | 0x34;
|
|
287
|
-
tramp[5] = (10 << 27) | (10 << 22) | (LO (closure) << 6) | 0x14;
|
|
288
|
-
tramp[6] = (8 << 27) | (0x0d << 11) | 0x3a;
|
|
289
|
-
#undef HI
|
|
290
|
-
#undef LO
|
|
291
|
-
|
|
292
|
-
/* Flush the caches.
|
|
293
|
-
See Example 9-4 in the Nios II Software Developer's Handbook. */
|
|
294
|
-
for (i = 0; i < 7; i++)
|
|
295
|
-
asm volatile ("flushd 0(%0); flushi %0" :: "r"(tramp + i) : "memory");
|
|
296
|
-
asm volatile ("flushp" ::: "memory");
|
|
297
|
-
|
|
298
|
-
closure->cif = cif;
|
|
299
|
-
closure->fun = fun;
|
|
300
|
-
closure->user_data = user_data;
|
|
301
|
-
|
|
302
|
-
return FFI_OK;
|
|
303
|
-
}
|
|
304
|
-
|