From aca839dc8658e4879f100b6b3851f7daa3b38855 Mon Sep 17 00:00:00 2001 From: Kimpe Andy Date: Fri, 2 Feb 2024 07:12:21 +0100 Subject: [PATCH] Create desmume-0.9.13-ppc64le.patch --- snap/patches/desmume-0.9.13-ppc64le.patch | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 snap/patches/desmume-0.9.13-ppc64le.patch diff --git a/snap/patches/desmume-0.9.13-ppc64le.patch b/snap/patches/desmume-0.9.13-ppc64le.patch new file mode 100644 index 000000000..057889515 --- /dev/null +++ b/snap/patches/desmume-0.9.13-ppc64le.patch @@ -0,0 +1,26 @@ +From a95e4c57c61b791fdcb17922735f8681af201b03 Mon Sep 17 00:00:00 2001 +From: rogerman +Date: Sun, 19 Jun 2022 20:36:50 -0700 +Subject: [PATCH] Remove AltiVec compiling for ppcle and ppc64le architectures, + since our AltiVec code only works on big-endian systems anyways. Fixes #550. + +--- + desmume/src/types.h | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/desmume/src/types.h b/desmume/src/types.h +index 0fe31b347..5d5ac50af 100644 +--- a/desmume/src/types.h ++++ b/desmume/src/types.h +@@ -53,7 +53,10 @@ + #endif + + #ifdef __GNUC__ +- #ifdef __ALTIVEC__ ++// Our AltiVec code assumes that its being run on a big-endian system. While ++// the ppcle and ppc64le architectures do exist, our AltiVec code does not ++// support little-endian right now. ++ #if defined(__ALTIVEC__) && defined(MSB_FIRST) && (MSB_FIRST > 0) + #define ENABLE_ALTIVEC + #endif +