diff options
author | neonloop | 2021-08-14 00:55:24 +0000 |
---|---|---|
committer | neonloop | 2021-08-14 00:55:24 +0000 |
commit | 830d847595e6e7415013b30b08a57519116d49e0 (patch) | |
tree | 082d6bc86387c1ec22a8058c94be9e1cf7ee2602 /patches | |
parent | d10f04ae3101ddcea792d5534de8f4755cdfa0a5 (diff) | |
download | picoarch-830d847595e6e7415013b30b08a57519116d49e0.tar.gz picoarch-830d847595e6e7415013b30b08a57519116d49e0.tar.bz2 picoarch-830d847595e6e7415013b30b08a57519116d49e0.zip |
Adds basic pcsx_rearmed core support
Diffstat (limited to 'patches')
-rw-r--r-- | patches/pcsx_rearmed/1000-trimui-support.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/patches/pcsx_rearmed/1000-trimui-support.patch b/patches/pcsx_rearmed/1000-trimui-support.patch new file mode 100644 index 0000000..2b8c6e6 --- /dev/null +++ b/patches/pcsx_rearmed/1000-trimui-support.patch @@ -0,0 +1,59 @@ +diff --git a/Makefile b/Makefile +index a01c4df..3d08eea 100644 +--- a/Makefile ++++ b/Makefile +@@ -5,6 +5,8 @@ TARGET ?= pcsx + CFLAGS += -Wall -Iinclude -ffast-math + ifeq ($(DEBUG), 1) + CFLAGS += -O0 -ggdb ++else ifneq (,$(OPTIMIZE)) ++CFLAGS += $(OPTIMIZE) + else + ifeq ($(platform), $(filter $(platform), vita ctr)) + CFLAGS += -O3 -DNDEBUG +diff --git a/Makefile.libretro b/Makefile.libretro +index 1ecd359..7faf5c7 100644 +--- a/Makefile.libretro ++++ b/Makefile.libretro +@@ -347,6 +347,27 @@ else ifeq ($(platform), rpi4_64) + fpic := -fPIC + CFLAGS += -march=armv8-a+crc+simd -mtune=cortex-a72 -ftree-vectorize + ++else ifeq ($(platform), trimui) ++ TARGET := $(TARGET_NAME)_libretro.so ++ CC = $(CROSS_COMPILE)gcc ++ CXX = $(CROSS_COMPILE)g++ ++ ++ CFLAGS += -mcpu=arm926ej-s -mtune=arm926ej-s ++ CFLAGS += -DGPULIB_USE_MMAP -DGPU_UNAI_USE_INT_DIV_MULTINV ++ CFLAGS += -ffast-math -fdata-sections -ffunction-sections -fsingle-precision-constant -flto -fno-PIC ++ LDFLAGS += -flto ++ ifeq (,$(DEBUG)) ++ LDFLAGS += -s ++ endif ++ CPU_ARCH := arm ++ OPTIMIZE := -Ofast -DNDEBUG ++ ++ DRC_CACHE_BASE = 0 ++ BUILTIN_GPU = unai ++ DYNAREC = ari64 ++ ARCH = arm ++ HAVE_NEON = 0 ++ + # Classic Platforms #################### + # Platform affix = classic_<ISA>_<µARCH> + # Help at https://modmyclassic.com/comp +@@ -459,6 +480,13 @@ CFLAGS += $(fpic) + MAIN_LDFLAGS += -shared + MAIN_LDLIBS += $(LIBPTHREAD) $(LIBM) $(LIBDL) $(LIBZ) + ++ifeq ($(PROFILE), GENERATE) ++ CFLAGS += -fprofile-generate=./profile/gpsp ++ LDFLAGS += -lgcov ++else ifeq ($(PROFILE), APPLY) ++ CFLAGS += -fprofile-use -fprofile-dir=../profile/gpsp -fbranch-probabilities ++endif ++ + # enable large file support if available + ifeq ($(shell $(CC) -E -dD $(CFLAGS) include/arm_features.h | grep __SIZEOF_LONG__ | awk '{print $$3}'),4) + CFLAGS += -D_FILE_OFFSET_BITS=64 |