Skip to content

Commit 17fe7ce

Browse files
authored
ppsspp buildfix and add armv8 (#1811)
1 parent 1776ebb commit 17fe7ce

2 files changed

Lines changed: 41 additions & 3 deletions

File tree

packages/lakka/libretro_cores/ppsspp/package.mk

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PKG_NAME="ppsspp"
2-
PKG_VERSION="9fe6338e3bf397f8a009a51a282c139dfa180eb6" #v1.13.2
2+
PKG_VERSION="d66c5c11c1532c2850552e8eb2095994021d055c" #v1.13.2 merged to master to include libretro buildfix
33
PKG_LICENSE="GPL-2.0-or-later"
44
PKG_SITE="https://github.com/hrydgard/ppsspp"
55
PKG_URL="https://github.com/hrydgard/ppsspp.git"
@@ -43,9 +43,13 @@ if [ "${OPENGL_SUPPORT}" = "no" -a "${OPENGLES_SUPPORT}" = "yes" ]; then
4343
fi
4444

4545
if [ "${TARGET_ARCH}" = "arm" ]; then
46-
PKG_CMAKE_OPTS_TARGET+=" -DARMV7=ON"
46+
if [[ "${TARGET_NAME}" =~ "armv8" ]]; then
47+
PKG_CMAKE_OPTS_TARGET+=" -DFORCED_CPU=armv8"
48+
else
49+
PKG_CMAKE_OPTS_TARGET+=" -DFORCED_CPU=armv7"
50+
fi
4751
elif [ "${TARGET_ARCH}" = "aarch64" ]; then
48-
PKG_CMAKE_OPTS_TARGET+=" -DARM64=ON"
52+
PKG_CMAKE_OPTS_TARGET+=" -DFORCED_CPU=aarch64"
4953
fi
5054

5155
pre_make_target() {
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index 90cd57ace..2ace6b70a 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -58,6 +58,10 @@ if(CMAKE_SYSTEM_PROCESSOR)
6+
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -target armv7a-none-linux-android")
7+
endif()
8+
endif()
9+
+ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^armv8")
10+
+ add_compile_options(-march=armv8-a+crc -mtune=cortex-a53 -mfloat-abi=hard -mfpu=neon-fp-armv8 -fomit-frame-pointer)
11+
+ add_definitions(-DPPSSPP_ARCH_ARM_NEON=1 -DPPSSPP_ARCH_ARMV8=1)
12+
+ endif()
13+
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^amd64" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "^x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "^AMD64")
14+
set(X86_DEVICE ON)
15+
set(X86_64_DEVICE ON)
16+
diff --git a/Common/ArmCPUDetect.cpp b/Common/ArmCPUDetect.cpp
17+
index 437bd3158..d46cf19db 100644
18+
--- a/Common/ArmCPUDetect.cpp
19+
+++ b/Common/ArmCPUDetect.cpp
20+
@@ -337,6 +337,13 @@ void CPUInfo::Detect()
21+
bNEON = true;
22+
bASIMD = true;
23+
#endif
24+
+
25+
+#if PPSSPP_ARCH(ARMV8)
26+
+ bNEON = true;
27+
+ bASIMD = true;
28+
+ bFP = true;
29+
+#endif
30+
+
31+
}
32+
33+
// Turn the cpu info into a string we can show
34+

0 commit comments

Comments
 (0)