From 32ea4a895c4c914f0347dd1e943bca0f474a9050 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 11 Feb 2014 13:31:48 -0800 Subject: pixelflinger: use __builtin___clear_cache instead of cacheflush cacheflush doesn't exist on LP64 any more, and gcc's __builtin___clear_cache is better in every way. Use it instead. Change-Id: Ibbf6facbdefc15b6dda51d014e1c44fb7aa2b17d --- libpixelflinger/codeflinger/CodeCache.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libpixelflinger/codeflinger') diff --git a/libpixelflinger/codeflinger/CodeCache.cpp b/libpixelflinger/codeflinger/CodeCache.cpp index 4fe30d9..7446da2 100644 --- a/libpixelflinger/codeflinger/CodeCache.cpp +++ b/libpixelflinger/codeflinger/CodeCache.cpp @@ -201,13 +201,9 @@ int CodeCache::cache( const AssemblyKeyBase& keyBase, mCacheInUse += assemblySize; mWhen++; // synchronize caches... -#if defined(__arm__) || defined(__mips__) || defined(__aarch64__) const long base = long(assembly->base()); const long curr = base + long(assembly->size()); - err = cacheflush(base, curr, 0); - ALOGE_IF(err, "cacheflush error %s\n", - strerror(errno)); -#endif + __builtin___clear_cache((void*)base, (void*)curr); } pthread_mutex_unlock(&mLock); -- cgit v1.1