Ignore:
Timestamp:
Oct 29, 2009, 12:32:33 AM (16 years ago)
Author:
[email protected]
Message:

Add cacheFlush support for Thumb-2 on Linux
https://bugs.webkit.org/show_bug.cgi?id=30865

Patch by Gabor Loki <[email protected]> on 2009-10-29
Reviewed by Gavin Barraclough.

  • jit/ExecutableAllocator.h:

(JSC::ExecutableAllocator::cacheFlush):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/ExecutableAllocator.h

    r49679 r50265  
    190190        sys_icache_invalidate(code, size);
    191191    }
     192#elif PLATFORM(ARM_THUMB2) && PLATFORM(LINUX)
     193    static void cacheFlush(void* code, size_t size)
     194    {
     195        asm volatile (
     196            "push    {r7}\n"
     197            "mov     r0, %0\n"
     198            "mov     r1, %1\n"
     199            "movw    r7, #0x2\n"
     200            "movt    r7, #0xf\n"
     201            "movs    r2, #0x0\n"
     202            "svc     0x0\n"
     203            "pop     {r7}\n"
     204            :
     205            : "r" (code), "r" (reinterpret_cast<char*>(code) + size)
     206            : "r0", "r1");
     207    }
    192208#elif PLATFORM(SYMBIAN)
    193209    static void cacheFlush(void* code, size_t size)
Note: See TracChangeset for help on using the changeset viewer.