Add workaround for Android ARM builds
While we are at it, use ARM mode for better performance.
This commit is contained in:
parent
56dc6ecb70
commit
0522d9a4f5
|
@ -54,7 +54,13 @@ u8 *rom_translation_ptr = rom_translation_cache;
|
|||
u8 *ram_translation_ptr = ram_translation_cache;
|
||||
u8 *bios_translation_ptr = bios_translation_cache;
|
||||
#elif defined(ARM_MEMORY_DYNAREC)
|
||||
|
||||
#ifdef __ANDROID__
|
||||
// Workaround for 'attempt to map x bytes at offset y'
|
||||
__asm__(".section .jit,\"awx\",%progbits");
|
||||
#else
|
||||
__asm__(".section .jit,\"awx\",%nobits");
|
||||
#endif
|
||||
|
||||
u8 rom_translation_cache[ROM_TRANSLATION_CACHE_SIZE]
|
||||
__attribute__ ((aligned(4),section(".jit")));
|
||||
|
|
|
@ -36,4 +36,5 @@ LOCAL_SRC_FILES := $(SOURCES_C) $(SOURCES_ASM)
|
|||
LOCAL_CFLAGS := $(COREFLAGS) $(INCFLAGS)
|
||||
LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/link.T
|
||||
LOCAL_LDLIBS := $(CORE_LDLIBS)
|
||||
LOCAL_ARM_MODE := arm
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
|
Loading…
Reference in New Issue