diff options
Diffstat (limited to 'cpu_threaded.c')
-rw-r--r-- | cpu_threaded.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/cpu_threaded.c b/cpu_threaded.c index c90bb76..3526dc1 100644 --- a/cpu_threaded.c +++ b/cpu_threaded.c @@ -23,13 +23,27 @@ #include "common.h" -#ifdef HAVE_MMAP +#if defined(HAVE_MMAP) u8* rom_translation_cache; u8* ram_translation_cache; u8* bios_translation_cache; u8 *rom_translation_ptr; u8 *ram_translation_ptr; u8 *bios_translation_ptr; +#elif defined(ANDROID) +__asm__(".section .jit,\"awx\",%progbits"); + +u8 rom_translation_cache[ROM_TRANSLATION_CACHE_SIZE] + __attribute__ ((aligned(4),section(".jit"))); +u8 *rom_translation_ptr = rom_translation_cache; + +u8 ram_translation_cache[RAM_TRANSLATION_CACHE_SIZE] + __attribute__ ((aligned(4),section(".jit"))); +u8 *ram_translation_ptr = ram_translation_cache; + +u8 bios_translation_cache[BIOS_TRANSLATION_CACHE_SIZE] + __attribute__ ((aligned(4),section(".jit"))); +u8 *bios_translation_ptr = bios_translation_cache; #else u8 rom_translation_cache[ROM_TRANSLATION_CACHE_SIZE]; u8 ram_translation_cache[RAM_TRANSLATION_CACHE_SIZE]; |