diff options
author | Narayan Kamath <narayan@google.com> | 2014-06-26 12:29:46 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-06-26 12:29:46 +0000 |
commit | 3bf00fd6a6901dfb52b0030581745f52ff98f537 (patch) | |
tree | 2359167791927f2b80f1e738c1621666c062dc05 | |
parent | dd8e63a4ecc00b45f0bc41c5e3d4a26f3c4c11f2 (diff) | |
parent | 10e36e8087db5420fef9904a0e37de088435b1ee (diff) | |
download | system_core-3bf00fd6a6901dfb52b0030581745f52ff98f537.zip system_core-3bf00fd6a6901dfb52b0030581745f52ff98f537.tar.gz system_core-3bf00fd6a6901dfb52b0030581745f52ff98f537.tar.bz2 |
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
-rw-r--r-- | libpixelflinger/codeflinger/CodeCache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpixelflinger/codeflinger/CodeCache.cpp b/libpixelflinger/codeflinger/CodeCache.cpp index 8afe0a9..cfd2b37 100644 --- a/libpixelflinger/codeflinger/CodeCache.cpp +++ b/libpixelflinger/codeflinger/CodeCache.cpp @@ -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); |