| 194 |
|
|
| 195 |
#ifndef SLJIT_CACHE_FLUSH |
#ifndef SLJIT_CACHE_FLUSH |
| 196 |
|
|
| 197 |
#if (defined SLJIT_CONFIG_PPC_32 && SLJIT_CONFIG_PPC_32) || (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64) |
#if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) || (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64) |
| 198 |
|
|
| 199 |
|
/* Not required to implement on archs with unified caches. */ |
| 200 |
|
#define SLJIT_CACHE_FLUSH(from, to) |
| 201 |
|
|
| 202 |
|
#elif defined __APPLE__ |
| 203 |
|
|
| 204 |
|
/* Supported by all macs since Mac OS 10.5. |
| 205 |
|
However, it does not work on non-jailbroken iOS devices, |
| 206 |
|
although the compilation is successful. */ |
| 207 |
|
|
|
/* The __clear_cache() implementation of GCC is a dummy function on PowerPC. */ |
|
| 208 |
#define SLJIT_CACHE_FLUSH(from, to) \ |
#define SLJIT_CACHE_FLUSH(from, to) \ |
| 209 |
ppc_cache_flush((from), (to)) |
sys_icache_invalidate((char*)(from), (char*)(to) - (char*)(from)) |
| 210 |
|
|
| 211 |
#elif (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) || (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64) |
#elif (defined SLJIT_CONFIG_PPC_32 && SLJIT_CONFIG_PPC_32) || (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64) |
| 212 |
|
|
| 213 |
/* Not required to implement on archs with unified caches. */ |
/* The __clear_cache() implementation of GCC is a dummy function on PowerPC. */ |
| 214 |
#define SLJIT_CACHE_FLUSH(from, to) |
#define SLJIT_CACHE_FLUSH(from, to) \ |
| 215 |
|
ppc_cache_flush((from), (to)) |
| 216 |
|
|
| 217 |
#else |
#else |
| 218 |
|
|