summaryrefslogtreecommitdiff
path: root/cpu_threaded.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu_threaded.c')
-rw-r--r--cpu_threaded.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpu_threaded.c b/cpu_threaded.c
index 519d7f0..6f08d1f 100644
--- a/cpu_threaded.c
+++ b/cpu_threaded.c
@@ -46,7 +46,7 @@ u8* rom_translation_cache_ptr;
u8* ram_translation_cache_ptr;
u8 *rom_translation_ptr = rom_translation_cache;
u8 *ram_translation_ptr = ram_translation_cache;
-#else
+#elif defined(ARM_MEMORY_DYNAREC)
#ifdef __ANDROID__
// Workaround for 'attempt to map x bytes at offset y'
@@ -66,6 +66,11 @@ u8 ram_translation_cache[RAM_TRANSLATION_CACHE_SIZE]
u8 *ram_translation_ptr = ram_translation_cache;
__asm__(".section .text");
+#else
+u8 rom_translation_cache[ROM_TRANSLATION_CACHE_SIZE];
+u8 ram_translation_cache[RAM_TRANSLATION_CACHE_SIZE];
+u8 *rom_translation_ptr = rom_translation_cache;
+u8 *ram_translation_ptr = ram_translation_cache;
#endif
u32 iwram_code_min = 0xFFFFFFFF;