From 562a62de94b4e84ffa6fbf59865f9a651966c435 Mon Sep 17 00:00:00 2001 From: Christophe Branchereau Date: Sat, 11 Sep 2021 12:52:30 +0200 Subject: [PATCH] OD Beta / RG350 : add support for hugepages This is always beneficial, and on some large apps like the standalone ScummVM I have a perf boost as much as 15% Not so drastic on smaller apps. I recommend to add this to the cores as well. Signed-off-by: Christophe Branchereau --- Makefile.rg350_odbeta | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.rg350_odbeta b/Makefile.rg350_odbeta index 335c8c3693..21c2f86243 100644 --- a/Makefile.rg350_odbeta +++ b/Makefile.rg350_odbeta @@ -32,6 +32,8 @@ GCW0_MK_SQUASH_FS ?= $(TOOLCHAIN_DIR)/usr/bin/mksquashfs GCW0_INC_DIR ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include GCW0_LIB_DIR ?= $(TOOLCHAIN_DIR)/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib +HUGEEDIT ?= $(TOOLCHAIN_DIR)/bin/hugeedit + ######################### ######################### @@ -126,7 +128,7 @@ LIBS := -ldl -lz -lrt -ludev -pthread CFLAGS := CXXFLAGS := -fno-exceptions -fno-rtti -std=c++11 -D__STDC_CONSTANT_MACROS ASFLAGS := -LDFLAGS := -Wl,--gc-sections +LDFLAGS := -Wl,--gc-sections -Wl,-zcommon-page-size=2097152 -Wl,-zmax-page-size=2097152 -lhugetlbfs INCLUDE_DIRS = -I$(GCW0_INC_DIR) LIBRARY_DIRS = -L$(GCW0_LIB_DIR) DEFINES := -DRARCH_INTERNAL -D_FILE_OFFSET_BITS=64 -UHAVE_STATIC_DUMMY @@ -223,6 +225,7 @@ opk: $(TARGET) ifeq ($(STRIP_BIN),1) $(STRIP) --strip-unneeded retroarch endif + $(HUGEEDIT) --text --data retroarch $(GCW0_MK_SQUASH_FS) retroarch default.gcw0.desktop retroarch.png $(OPK_NAME) -all-root -no-xattrs -noappend -no-exports rm -f default.gcw0.desktop retroarch.png