Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a42d5bf0 authored by Narayan Kamath's avatar Narayan Kamath Committed by Gerrit Code Review
Browse files

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

parents 64f5fe27 410ae2fe
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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);