From 15ccd6f099419e1e8c7a5e9d6367e2b3772e79a6 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Fri, 3 Jul 2026 11:37:58 +0000 Subject: [PATCH 1/2] space_includes.h: add powerpc* support Tested on FreeBSD/powerpc64le. --- src/VecSim/spaces/space_includes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/VecSim/spaces/space_includes.h b/src/VecSim/spaces/space_includes.h index 8860fb966..9fd8a2239 100644 --- a/src/VecSim/spaces/space_includes.h +++ b/src/VecSim/spaces/space_includes.h @@ -17,6 +17,9 @@ #ifdef CPU_FEATURES_ARCH_AARCH64 #include "cpuinfo_aarch64.h" #endif // CPU_FEATURES_ARCH_AARCH64 +#ifdef CPU_FEATURES_ARCH_PPC +#include "cpuinfo_ppc.h" +#endif // CPU_FEATURES_ARCH_PPC #if defined(__AVX512F__) || defined(__AVX__) || defined(__SSE__) #if defined(__GNUC__) From f03391281c9ba09a139fab946bc3361bcc69e126 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Fri, 3 Jul 2026 11:39:24 +0000 Subject: [PATCH 2/2] spaces.h: fix build on powerpc* Tested on FreeBSD/powerpc64le. --- src/VecSim/spaces/spaces.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/VecSim/spaces/spaces.h b/src/VecSim/spaces/spaces.h index 11b0f9801..4404020da 100644 --- a/src/VecSim/spaces/spaces.h +++ b/src/VecSim/spaces/spaces.h @@ -57,6 +57,9 @@ static inline auto getCpuOptimizationFeatures(const void *arch_opt = nullptr) { #if defined(CPU_FEATURES_ARCH_AARCH64) using FeaturesType = cpu_features::Aarch64Features; constexpr auto getFeatures = cpu_features::GetAarch64Info; +#elif defined(CPU_FEATURES_ARCH_PPC) + using FeaturesType = cpu_features::PPCFeatures; + constexpr auto getFeatures = cpu_features::GetPPCInfo; #else using FeaturesType = cpu_features::X86Features; // Fallback constexpr auto getFeatures = cpu_features::GetX86Info;