(Android) For Android x86 build - try to use mmap, for Android - use ARM_MEMORY_DYNAREC

codepath
This commit is contained in:
twinaphex 2014-12-11 01:38:47 +01:00
parent eeeff89a2c
commit c78a0dd39b
2 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@ u8* bios_translation_cache;
u8 *rom_translation_ptr;
u8 *ram_translation_ptr;
u8 *bios_translation_ptr;
#elif defined(ANDROID)
#elif defined(ARM_MEMORY_DYNAREC)
__asm__(".section .jit,\"awx\",%progbits");
u8 rom_translation_cache[ROM_TRANSLATION_CACHE_SIZE]

View file

@ -6,14 +6,14 @@ LOCAL_MODULE := retro
CPU_ARCH :=
ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -DANDROID_ARM -DARM_ARCH
LOCAL_CFLAGS += -DANDROID_ARM -DARM_ARCH -DARM_MEMORY_DYNAREC
LOCAL_ARM_MODE := arm
CPU_ARCH := arm
HAVE_DYNAREC := 1
endif
ifeq ($(TARGET_ARCH),x86)
LOCAL_CFLAGS += -DANDROID_X86
LOCAL_CFLAGS += -DANDROID_X86 -DHAVE_MMAP
CPU_ARCH := x86_32
HAVE_DYNAREC := 1
endif