TEXT   39

areascout patch

Guest on 16th June 2022 05:06:30 AM

  1. diff --git a/Makefile b/Makefile
  2. index e72919a..a7df1eb 100644
  3. --- a/Makefile
  4. +++ b/Makefile
  5. @@ -238,10 +238,11 @@ else ifneq (,$(findstring armv,$(platform)))
  6.         CXX = g++
  7.         TARGET := $(TARGET_NAME)_libretro.so
  8.         fpic := -fPIC
  9. -       LDFLAGS += -shared -Wl,--version-script=$(LIBRETRO_DIR)/link.T -Wl,--no-undefined
  10. +       LDFLAGS += -shared -static-libgcc -static-libstdc++
  11.         INCFLAGS += -I.
  12.         CPUFLAGS += -DNO_ASM
  13.         WITH_DYNAREC=arm
  14. +       PLATFORM_EXT := unix
  15.         ifneq (,$(findstring gles,$(platform)))
  16.                 GLES := 1
  17.                 GL_LIB := -lGLESv2
  18. @@ -249,9 +250,13 @@ else ifneq (,$(findstring armv,$(platform)))
  19.                 GL_LIB := -lGL
  20.         endif
  21.         ifneq (,$(findstring cortexa8,$(platform)))
  22. -               CPUFLAGS += -marm -mcpu=cortex-a8
  23. +               CPUFLAGS += -marm -mcpu=cortex-a8 -mtune=cortex-a8
  24.         else ifneq (,$(findstring cortexa9,$(platform)))
  25. -               CPUFLAGS += -marm -mcpu=cortex-a9
  26. +               CPUFLAGS += -marm -mcpu=cortex-a9 -mtune=cortex-a9
  27. +       else ifneq (,$(findstring cortexa15,$(platform)))
  28. +               CPUFLAGS += -marm -mcpu=cortex-a15 -mtune=cortex-a15
  29. +       else ifneq (,$(findstring cortexa5,$(platform)))
  30. +               CPUFLAGS += -marm -mcpu=cortex-a5 -mtune=cortex-a5
  31.         endif
  32.         CPUFLAGS += -marm
  33.         ifneq (,$(findstring neon,$(platform)))
  34. @@ -263,7 +268,7 @@ else ifneq (,$(findstring armv,$(platform)))
  35.         else ifneq (,$(findstring hardfloat,$(platform)))
  36.                 CPUFLAGS += -mfloat-abi=hard
  37.         endif
  38. -       PLATCFLAGS += -DARM
  39. +       PLATCFLAGS += -DARM -DARM_ASM -DNOSSE -DNO_ASM -D__arm__ -D__ARM_NEON__ -D__NEON_OPT -funroll-loops -ffast-math
  40.  
  41.  # emscripten
  42.  else ifeq ($(platform), emscripten)
  43. diff --git a/mupen64plus-core/src/plugin/audio_libretro/audio_resampler_driver.c b/mupen64plus-core/src/plugin/audio_libretro/audio_resampler_driver.c
  44. index 2591e9e..95676ff 100644
  45. --- a/mupen64plus-core/src/plugin/audio_libretro/audio_resampler_driver.c
  46. +++ b/mupen64plus-core/src/plugin/audio_libretro/audio_resampler_driver.c
  47. @@ -22,7 +22,7 @@
  48.  #include "api/msvc_compat.h"
  49.  
  50.  static const rarch_resampler_t *resampler_drivers[] = {
  51. -   &CC_resampler,
  52. +   //&CC_resampler,
  53.     &sinc_resampler,
  54.     &nearest_resampler,
  55.     NULL,
  56. diff --git a/mupen64plus-core/src/plugin/audio_libretro/audio_resampler_driver.h b/mupen64plus-core/src/plugin/audio_libretro/audio_resampler_driver.h
  57. index f5e052b..6c20e8d 100644
  58. --- a/mupen64plus-core/src/plugin/audio_libretro/audio_resampler_driver.h
  59. +++ b/mupen64plus-core/src/plugin/audio_libretro/audio_resampler_driver.h
  60. @@ -140,7 +140,7 @@ typedef struct audio_frame_float
  61.  } audio_frame_float_t;
  62.  
  63.  extern rarch_resampler_t sinc_resampler;
  64. -extern rarch_resampler_t CC_resampler;
  65. +//extern rarch_resampler_t CC_resampler;
  66.  extern rarch_resampler_t nearest_resampler;
  67.  
  68.  #ifndef DONT_HAVE_STRING_LIST

Raw Paste


Login or Register to edit or fork this paste. It's free.