Index: src/mips/ffi.c =================================================================== --- src/mips/ffi.c (revision 125997) +++ src/mips/ffi.c (working copy) @@ -27,7 +27,6 @@ #include #include -#include #if _MIPS_SIM == _ABIN32 #define FIX_ARGP \ @@ -525,8 +524,7 @@ ffi_prep_closure_loc (ffi_closure *closu closure->fun = fun; closure->user_data = user_data; - /* XXX this is available on Linux, but anything else? */ - cacheflush (codeloc, FFI_TRAMPOLINE_SIZE, ICACHE); + __builtin_flush_icache(codeloc, FFI_TRAMPOLINE_SIZE); return FFI_OK; }