Merge "pixelflinger: Use pointer arithmetic to determine cache flush parameters"

This commit is contained in:
Narayan Kamath 2014-06-26 12:19:59 +00:00 committed by Gerrit Code Review
commit a42d5bf006

View file

@ -201,9 +201,9 @@ int CodeCache::cache( const AssemblyKeyBase& keyBase,
mCacheInUse += assemblySize;
mWhen++;
// synchronize caches...
const long base = long(assembly->base());
const long curr = base + long(assembly->size());
__builtin___clear_cache((void*)base, (void*)curr);
void* base = assembly->base();
void* curr = (uint8_t*)base + assembly->size();
__builtin___clear_cache(base, curr);
}
pthread_mutex_unlock(&mLock);