am 10e36e80: am a42d5bf0: Merge "pixelflinger: Use pointer arithmetic to determine cache flush parameters"
* commit '10e36e8087db5420fef9904a0e37de088435b1ee': pixelflinger: Use pointer arithmetic to determine cache flush parameters
This commit is contained in:
commit
3bf00fd6a6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue