patch-xbmc_platform_linux_CPUInfoLinux_cpp 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. --- xbmc-21.0b2-Omega.orig/xbmc/platform/linux/CPUInfoLinux.cpp 2023-12-09 22:24:46.000000000 +0100
  2. +++ xbmc-21.0b2-Omega/xbmc/platform/linux/CPUInfoLinux.cpp 2024-01-30 15:52:43.704683194 +0100
  3. @@ -19,10 +19,7 @@
  4. #include <sstream>
  5. #include <vector>
  6. -#if (defined(__arm__) && defined(HAS_NEON)) || defined(__aarch64__)
  7. -#include <asm/hwcap.h>
  8. -#include <sys/auxv.h>
  9. -#elif defined(__i386__) || defined(__x86_64__)
  10. +#if defined(__i386__) || defined(__x86_64__)
  11. #include <cpuid.h>
  12. #endif
  13. @@ -279,16 +276,6 @@ CCPUInfoLinux::CCPUInfoLinux()
  14. m_cpuModel = m_cpuModel.substr(0, m_cpuModel.find(char(0))); // remove extra null terminations
  15. -#if defined(HAS_NEON) && defined(__arm__)
  16. - if (getauxval(AT_HWCAP) & HWCAP_NEON)
  17. - m_cpuFeatures |= CPU_FEATURE_NEON;
  18. -#endif
  19. -
  20. -#if defined(HAS_NEON) && defined(__aarch64__)
  21. - if (getauxval(AT_HWCAP) & HWCAP_ASIMD)
  22. - m_cpuFeatures |= CPU_FEATURE_NEON;
  23. -#endif
  24. -
  25. // Set MMX2 when SSE is present as SSE is a superset of MMX2 and Intel doesn't set the MMX2 cap
  26. if (m_cpuFeatures & CPU_FEATURE_SSE)
  27. m_cpuFeatures |= CPU_FEATURE_MMX2;