From 2bc2b792782b304b15d8c48b54916a9b3fa3a7ac Mon Sep 17 00:00:00 2001 From: Paul Lind Date: Wed, 1 Feb 2012 10:54:19 -0800 Subject: Add MIPS support to pixelflinger. See the comment-block at the top of MIPSAssembler.cpp for implementation overview. Change-Id: Id492c10610574af8c89c38d19e12fafc3652c28a --- libpixelflinger/codeflinger/CodeCache.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'libpixelflinger/codeflinger/CodeCache.cpp') diff --git a/libpixelflinger/codeflinger/CodeCache.cpp b/libpixelflinger/codeflinger/CodeCache.cpp index a713feb..4f2ede3 100644 --- a/libpixelflinger/codeflinger/CodeCache.cpp +++ b/libpixelflinger/codeflinger/CodeCache.cpp @@ -36,6 +36,12 @@ namespace android { #include #endif +#if defined(__mips__) +#include +#include +#endif + +// ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- Assembly::Assembly(size_t size) @@ -155,12 +161,12 @@ int CodeCache::cache( const AssemblyKeyBase& keyBase, mCacheInUse += assemblySize; mWhen++; // synchronize caches... -#if defined(__arm__) +#if defined(__arm__) || defined(__mips__) const long base = long(assembly->base()); const long curr = base + long(assembly->size()); err = cacheflush(base, curr, 0); - ALOGE_IF(err, "__ARM_NR_cacheflush error %s\n", - strerror(errno)); + ALOGE_IF(err, "cacheflush error %s\n", + strerror(errno)); #endif } -- cgit v1.1