This commit is contained in:
2024-10-07 11:22:59 +02:00
parent 9632efab7a
commit 5348038218
11 changed files with 212 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- src/riscv/ffi.c.orig 2019-10-31 14:49:54 UTC
+++ src/riscv/ffi.c
@@ -417,7 +417,9 @@ ffi_status ffi_prep_closure_loc(ffi_clos
closure->fun = fun;
closure->user_data = user_data;
+#if !defined(__FreeBSD__)
__builtin___clear_cache(codeloc, codeloc + FFI_TRAMPOLINE_SIZE);
+#endif
return FFI_OK;
}