From c68325a713de9dc618153be557fd5c4efb1140dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Jos=C3=A9=20Garc=C3=ADa=20Garc=C3=ADa?= Date: Mon, 14 Nov 2016 19:13:07 +0100 Subject: [PATCH] (VITA) Add support for -mthumb --- Makefile.griffin | 2 +- audio/drivers_resampler/cc_resampler_neon.S | 4 ++++ audio/drivers_resampler/sinc_resampler_neon.S | 2 ++ libretro-common/conversion/float_to_s16_neon.S | 2 ++ libretro-common/conversion/s16_to_float_neon.S | 2 ++ memory/neon/memcpy-neon.S | 2 +- 6 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile.griffin b/Makefile.griffin index 121f094758b3..e0c234d14cf9 100644 --- a/Makefile.griffin +++ b/Makefile.griffin @@ -213,7 +213,7 @@ else ifeq ($(platform), vita) INCLUDE += -Ideps/zlib PLATCFLAGS := -marm -mfloat-abi=hard -fsingle-precision-constant \ -mword-relocations -fno-unwind-tables -fno-asynchronous-unwind-tables -ftree-vectorize -fno-optimize-sibling-calls - LIBS += -lSceKernel_stub -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub\ + LIBS += -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub\ -lSceSysmodule_stub -lSceCtrl_stub -lSceTouch_stub -lSceAudio_stub -lSceFiber_stub\ -lScePower_stub -lSceRtc_stub -lSceCommonDialog_stub -lScePgf_stub \ -lSceMotion_stub -lSceAppMgr_stub -lpng -lm -lc diff --git a/audio/drivers_resampler/cc_resampler_neon.S b/audio/drivers_resampler/cc_resampler_neon.S index c0c0ecfa6e15..2725839ed445 100644 --- a/audio/drivers_resampler/cc_resampler_neon.S +++ b/audio/drivers_resampler/cc_resampler_neon.S @@ -24,7 +24,9 @@ #endif .align 4 .globl resampler_CC_downsample_neon +.type resampler_CC_downsample_neon, %function .globl _resampler_CC_downsample_neon +.type _resampler_CC_downsample_neon, %function # size_t resampler_CC_downsample_neon(float *outp, const float *inp, # rarch_CC_resampler_t* re_, size_t input_frames, float ratio); @@ -196,7 +198,9 @@ bx lr .align 4 .globl resampler_CC_upsample_neon +.type resampler_CC_upsample_neon, %function .globl _resampler_CC_upsample_neon +.type _resampler_CC_upsample_neon, %function # size_t resampler_CC_upsample_neon(float *outp, const float *inp, # rarch_CC_resampler_t* re_, size_t input_frames, float ratio); diff --git a/audio/drivers_resampler/sinc_resampler_neon.S b/audio/drivers_resampler/sinc_resampler_neon.S index 44e392459755..ba8c8e1bd0d4 100644 --- a/audio/drivers_resampler/sinc_resampler_neon.S +++ b/audio/drivers_resampler/sinc_resampler_neon.S @@ -19,7 +19,9 @@ #endif .align 4 .globl process_sinc_neon_asm +.type process_sinc_neon_asm, %function .globl _process_sinc_neon_asm +.type _process_sinc_neon_asm, %function # void process_sinc_neon(float *out, const float *left, const float *right, const float *coeff, unsigned taps) # Assumes taps is >= 8, and a multiple of 8. process_sinc_neon_asm: diff --git a/libretro-common/conversion/float_to_s16_neon.S b/libretro-common/conversion/float_to_s16_neon.S index 8f2711c35083..0676004b512f 100644 --- a/libretro-common/conversion/float_to_s16_neon.S +++ b/libretro-common/conversion/float_to_s16_neon.S @@ -27,7 +27,9 @@ .align 4 .globl convert_float_s16_asm +.type convert_float_s16_asm, %function .globl _convert_float_s16_asm +.type _convert_float_s16_asm, %function # convert_float_s16_asm(int16_t *out, const float *in, size_t samples) convert_float_s16_asm: _convert_float_s16_asm: diff --git a/libretro-common/conversion/s16_to_float_neon.S b/libretro-common/conversion/s16_to_float_neon.S index 2b11aaa1e4c5..91b75a38e35a 100644 --- a/libretro-common/conversion/s16_to_float_neon.S +++ b/libretro-common/conversion/s16_to_float_neon.S @@ -27,7 +27,9 @@ .align 4 .globl convert_s16_float_asm +.type convert_s16_float_asm, %function .globl _convert_s16_float_asm +.type _convert_s16_float_asm, %function # convert_s16_float_asm(float *out, const int16_t *in, size_t samples, const float *gain) convert_s16_float_asm: _convert_s16_float_asm: diff --git a/memory/neon/memcpy-neon.S b/memory/neon/memcpy-neon.S index eb52ae28bb8e..894639a9397c 100644 --- a/memory/neon/memcpy-neon.S +++ b/memory/neon/memcpy-neon.S @@ -13,7 +13,7 @@ @ void* memcpy(void *destination, const void *source, size_t num) .global memcpy_neon - +.type memcpy_neon, %function /* * ENABLE_UNALIGNED_MEM_ACCESSES macro can be defined to permit the use * of unaligned load/store memory accesses supported since ARMv6. This