(Android) Works now with dynarec
This commit is contained in:
parent
a9ce972736
commit
eeeff89a2c
|
@ -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];
|
||||
|
|
|
@ -38,6 +38,6 @@ endif
|
|||
include $(CORE_DIR)/Makefile.common
|
||||
|
||||
LOCAL_SRC_FILES := $(SOURCES_C) $(SOURCES_ASM)
|
||||
LOCAL_CFLAGS += -O2 -DHAVE_MMAP -DNDEBUG -DINLINE=inline -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 $(INCFLAGS)
|
||||
LOCAL_CFLAGS += -O2 -DNDEBUG -DINLINE=inline -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 $(INCFLAGS)
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
|
Loading…
Reference in New Issue