Changeset 79773 in webkit
- Timestamp:
- Feb 26, 2011 2:11:10 AM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r79750 r79773 1 2011-02-26 Thouraya ANDOLSI <thouraya.andolsi@st.com> 2 3 Reviewed by Nikolas Zimmermann. 4 5 SH4 JIT SUPPORT 6 https://bugs.webkit.org/show_bug.cgi?id=44329 7 8 Provide an ExecutableAllocater::cacheFlush() implementation for 9 Linux/SH4. 10 11 * jit/ExecutableAllocator.h: 12 (JSC::ExecutableAllocator::cacheFlush): 13 1 14 2011-02-25 Sheriff Bot <webkit.review.bot@gmail.com> 2 15 -
trunk/Source/JavaScriptCore/jit/ExecutableAllocator.h
r77972 r79773 48 48 #endif 49 49 50 #if CPU(SH4) && OS(LINUX) 51 #include <asm/cachectl.h> 52 #include <asm/unistd.h> 53 #include <sys/syscall.h> 54 #include <unistd.h> 55 #endif 56 50 57 #if OS(WINCE) 51 58 // From pkfuncs.h (private header file from the Platform Builder) … … 311 318 IMemCache1_ClearCache(memCache.get(), reinterpret_cast<uint32>(code), size, MEMSPACE_CACHE_INVALIDATE, MEMSPACE_INSTCACHE); 312 319 } 320 #elif CPU(SH4) && OS(LINUX) 321 static void cacheFlush(void* code, size_t size) 322 { 323 #ifdef CACHEFLUSH_D_L2 324 syscall(__NR_cacheflush, reinterpret_cast<unsigned>(code), size, CACHEFLUSH_D_WB | CACHEFLUSH_I | CACHEFLUSH_D_L2); 325 #else 326 syscall(__NR_cacheflush, reinterpret_cast<unsigned>(code), size, CACHEFLUSH_D_WB | CACHEFLUSH_I); 327 #endif 328 } 313 329 #else 314 330 #error "The cacheFlush support is missing on this platform."
Note: See TracChangeset
for help on using the changeset viewer.