Changeset 79773 in webkit


Ignore:
Timestamp:
Feb 26, 2011 2:11:10 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-02-26 Thouraya ANDOLSI <thouraya.andolsi@st.com>

Reviewed by Nikolas Zimmermann.

SH4 JIT SUPPORT
https://bugs.webkit.org/show_bug.cgi?id=44329

Provide an ExecutableAllocater::cacheFlush() implementation for
Linux/SH4.

  • jit/ExecutableAllocator.h: (JSC::ExecutableAllocator::cacheFlush):
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r79750 r79773  
     12011-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
    1142011-02-25  Sheriff Bot  <webkit.review.bot@gmail.com>
    215
  • trunk/Source/JavaScriptCore/jit/ExecutableAllocator.h

    r77972 r79773  
    4848#endif
    4949
     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
    5057#if OS(WINCE)
    5158// From pkfuncs.h (private header file from the Platform Builder)
     
    311318        IMemCache1_ClearCache(memCache.get(), reinterpret_cast<uint32>(code), size, MEMSPACE_CACHE_INVALIDATE, MEMSPACE_INSTCACHE);
    312319    }
     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    }
    313329#else
    314330    #error "The cacheFlush support is missing on this platform."
Note: See TracChangeset for help on using the changeset viewer.