From 38a49a2794e82568031c4315a0c797d23a920d69 Mon Sep 17 00:00:00 2001 From: neonloop Date: Mon, 23 Aug 2021 14:53:51 +0000 Subject: Adds fceumm core Needs PGO to hit fullspeed. Nestopia won't run (needs XRGB8888) and would probably be slow. Maybe try QuickNES if speed is an issue with fceumm. --- patches/fceumm/1000-trimui-build.patch | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 patches/fceumm/1000-trimui-build.patch (limited to 'patches/fceumm') diff --git a/patches/fceumm/1000-trimui-build.patch b/patches/fceumm/1000-trimui-build.patch new file mode 100644 index 0000000..4d52559 --- /dev/null +++ b/patches/fceumm/1000-trimui-build.patch @@ -0,0 +1,51 @@ +diff --git a/Makefile.libretro b/Makefile.libretro +index 2f2bb5a..493149f 100644 +--- a/Makefile.libretro ++++ b/Makefile.libretro +@@ -445,6 +445,22 @@ else ifeq ($(platform), retrofw) + PLATFORM_DEFINES += -ffast-math -march=mips32 -mtune=mips32 -mhard-float -fomit-frame-pointer + EXTERNAL_ZLIB = 1 + ++# TRIMUI ++else ifeq ($(platform), trimui) ++ TARGET := $(TARGET_NAME)_libretro.so ++ CC = $(CROSS_COMPILE)gcc ++ CXX = $(CROSS_COMPILE)g++ ++ AR = $(CROSS_COMPILE)ar ++ SHARED := -shared -Wl,--version-script=src/drivers/libretro/link.T -Wl,-no-undefined ++ LDFLAGS += -fno-PIC -flto ++ CFLAGS += -fomit-frame-pointer -ffast-math -mcpu=arm926ej-s -mtune=arm926ej-s -fno-PIC -flto ++ OPTIMIZE := -Ofast -DNDEBUG ++ EXTERNAL_ZLIB = 1 ++ HAVE_NTSC = 0 ++ ifeq (,$(DEBUG)) ++ LDFLAGS += -s ++ endif ++ + # Windows MSVC 2017 all architectures + else ifneq (,$(findstring windows_msvc2017,$(platform))) + CC = cl.exe +@@ -708,10 +724,23 @@ else + CFLAGS += -MT + CXXFLAGS += -MT + endif ++ ifneq (,$(OPTIMIZE)) ++ CFLAGS += $(OPTIMIZE) ++ CXXFLAGS += $(OPTIMIZE) ++ else + CFLAGS += -O2 -DNDEBUG + CXXFLAGS += -O2 -DNDEBUG ++ endif + endif + ++ifeq ($(PROFILE), GENERATE) ++ CFLAGS += -fprofile-generate=./profile/fceumm ++ LDFLAGS += -lgcov ++else ifeq ($(PROFILE), APPLY) ++ CFLAGS += -fprofile-use -fprofile-dir=../profile/fceumm -fbranch-probabilities ++endif ++ ++ + ifneq ($(SANITIZER),) + CFLAGS += -fsanitize=$(SANITIZER) + CXXFLAGS += -fsanitize=$(SANITIZER) -- cgit v1.2.3