From cc176af4645dcf9021b1418a4889bef6a5c3ebae Mon Sep 17 00:00:00 2001 From: Android Tools Maintainers Date: Tue, 22 Mar 2022 22:50:07 +0000 Subject: [PATCH] Workaround cacheflush on arm Forwarded: not-needed Gbp-Pq: Topic art Gbp-Pq: Name workaround-cacheflush-on-arm.patch --- art/libartbase/base/utils.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/art/libartbase/base/utils.cc b/art/libartbase/base/utils.cc index 19311b3d..f00a81a0 100644 --- a/art/libartbase/base/utils.cc +++ b/art/libartbase/base/utils.cc @@ -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); } -- 2.30.2