aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/Memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/Memory.cpp')
-rw-r--r--lib/Support/Memory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/Memory.cpp b/lib/Support/Memory.cpp
index 22f7494..8617365 100644
--- a/lib/Support/Memory.cpp
+++ b/lib/Support/Memory.cpp
@@ -70,6 +70,10 @@ void llvm::sys::Memory::InvalidateInstructionCache(const void *Addr,
const char *Start = static_cast<const char *>(Addr);
const char *End = Start + Len;
__clear_cache(const_cast<char *>(Start), const_cast<char *>(End));
+# elif defined(__mips__) && defined(ANDROID)
+ // NOTE: The declaration of "cacheflush" in bionic:
+ // extern int cacheflush(long start, long end, long flags);
+ cacheflush((long)Addr, (long)(Addr+Len), BCACHE);
# elif defined(__mips__)
const char *Start = static_cast<const char *>(Addr);
cacheflush(const_cast<char *>(Start), Len, BCACHE);