From 3d94e11b413a95a0e26ad3e77937a6b2c2edefe0 Mon Sep 17 00:00:00 2001 From: Android Tools Maintainers Date: Thu, 7 Jan 2021 12:08:42 +0000 Subject: [PATCH] Workaround cacheflush on arm Forwarded: not-needed Gbp-Pq: Name workaround-cacheflush-on-arm.patch --- libartbase/base/utils.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libartbase/base/utils.cc b/libartbase/base/utils.cc index 5af80f4..bdc2750 100644 --- a/libartbase/base/utils.cc +++ b/libartbase/base/utils.cc @@ -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); } -- 2.30.2