aboutsummaryrefslogtreecommitdiff
path: root/dyngen.h
diff options
context:
space:
mode:
Diffstat (limited to 'dyngen.h')
-rw-r--r--dyngen.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/dyngen.h b/dyngen.h
index 2a87c448fd..e8bf72bfd0 100644
--- a/dyngen.h
+++ b/dyngen.h
@@ -463,3 +463,11 @@ static inline void ia64_apply_fixes (uint8_t **gen_code_pp,
}
#endif
+
+#ifdef __mips__
+#include <sys/cachectl.h>
+static inline void flush_icache_range(unsigned long start, unsigned long stop)
+{
+ _flush_cache ((void *)start, stop - start, BCACHE);
+}
+#endif