Workaround cacheflush on arm
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Thu, 7 Jan 2021 12:08:42 +0000 (12:08 +0000)
committerHans-Christoph Steiner <hans@eds.org>
Thu, 7 Jan 2021 12:08:42 +0000 (12:08 +0000)
Forwarded: not-needed

Gbp-Pq: Name workaround-cacheflush-on-arm.patch

libartbase/base/utils.cc

index 5af80f43960fcd5aa76e490da4c9a5885b6ea730..bdc27500fba6e3a85e861e360e8e2d3820cafd16 100644 (file)
@@ -76,7 +76,10 @@ static constexpr size_t kMaxFlushAttempts = 4;
 int CacheFlush(uintptr_t start, uintptr_t limit) {
   // The signature of cacheflush(2) seems to vary by source. On ARM the system call wrapper
   //    (bionic/SYSCALLS.TXT) has the form: int cacheflush(long start, long end, long flags);
-  int r = cacheflush(start, limit, kCacheFlushFlags);
+//  int r = cacheflush(start, limit, kCacheFlushFlags);
+//This is only for ARM
+//Workaround/skip cacheflush until we find the real replacement
+  int r = 0;
   if (r == -1) {
     CHECK_NE(errno, EINVAL);
   }