| 178 |
|
|
| 179 |
#ifndef SLJIT_CACHE_FLUSH |
#ifndef SLJIT_CACHE_FLUSH |
| 180 |
|
|
| 181 |
#if !(defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) && !(defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64) |
#if (defined SLJIT_CONFIG_PPC_32 && SLJIT_CONFIG_PPC_32) || (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64) |
| 182 |
/* Just call __ARM_NR_cacheflush on Linux. */ |
|
| 183 |
|
/* The __clear_cache() implementation of GCC is a dummy function on PowerPC. */ |
| 184 |
#define SLJIT_CACHE_FLUSH(from, to) \ |
#define SLJIT_CACHE_FLUSH(from, to) \ |
| 185 |
__clear_cache((char*)(from), (char*)(to)) |
ppc_cache_flush((from), (to)) |
| 186 |
#else |
|
| 187 |
/* Not required to implement on archs with unified caches. */ |
#elif (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) || (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64) |
| 188 |
|
|
| 189 |
|
/* Not required to implement on archs with unified caches. */ |
| 190 |
#define SLJIT_CACHE_FLUSH(from, to) |
#define SLJIT_CACHE_FLUSH(from, to) |
| 191 |
|
|
| 192 |
|
#else |
| 193 |
|
|
| 194 |
|
/* Calls __ARM_NR_cacheflush on ARM-Linux. */ |
| 195 |
|
#define SLJIT_CACHE_FLUSH(from, to) \ |
| 196 |
|
__clear_cache((char*)(from), (char*)(to)) |
| 197 |
|
|
| 198 |
#endif |
#endif |
| 199 |
|
|
| 200 |
#endif /* !SLJIT_CACHE_FLUSH */ |
#endif /* !SLJIT_CACHE_FLUSH */ |