From 1a6a13680119d40bb20f1bd8a7e62a76c6b16d58 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Tue, 9 Dec 2014 09:54:33 +0100 Subject: dynamic recompiler now works when the core is compiled as a shared library. --- cpu.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpu.h') diff --git a/cpu.h b/cpu.h index f19d202..facac44 100644 --- a/cpu.h +++ b/cpu.h @@ -152,9 +152,15 @@ s32 translate_block_thumb(u32 pc, translation_region_type translation_region, #endif +#ifdef __LIBRETRO__ +extern u8* rom_translation_cache; +extern u8* ram_translation_cache; +extern u8* bios_translation_cache; +#else extern u8 rom_translation_cache[ROM_TRANSLATION_CACHE_SIZE]; extern u8 ram_translation_cache[RAM_TRANSLATION_CACHE_SIZE]; extern u8 bios_translation_cache[BIOS_TRANSLATION_CACHE_SIZE]; +#endif extern u8 *rom_translation_ptr; extern u8 *ram_translation_ptr; extern u8 *bios_translation_ptr; -- cgit v1.2.3