Workaround cacheflush on arm
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Tue, 2 Aug 2022 15:23:27 +0000 (16:23 +0100)
committerRoger Shimizu <rosh@debian.org>
Tue, 2 Aug 2022 15:23:27 +0000 (16:23 +0100)
Forwarded: not-needed

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

art/libartbase/base/utils.cc

index 19311b3dedc09c5c61a6229a6ee50a35fba6a3f0..f00a81a0861ad9dc9d95be15fe4ce2980b130f11 100644 (file)
@@ -78,7 +78,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);
   }