Kaynağa Gözat

Fixed bug 5209 - cpuinfo recognize OpenBSD ARM

Brad Smith

OpenBSD/arm only supports ARMv7 and and not any CPUs that do not support NEON.
Sam Lantinga 4 yıl önce
ebeveyn
işleme
c2b8530591
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      src/cpuinfo/SDL_cpuinfo.c

+ 2 - 0
src/cpuinfo/SDL_cpuinfo.c

@@ -457,6 +457,8 @@ CPU_haveNEON(void)
     return 1;  /* all Apple ARMv7 chips and later have NEON. */
 #elif defined(__APPLE__)
     return 0;  /* assume anything else from Apple doesn't have NEON. */
+#elif defined(__OpenBSD__)
+    return 1;  /* OpenBSD only supports ARMv7 CPUs that have NEON. */
 #elif !defined(__arm__)
     return 0;  /* not an ARM CPU at all. */
 #elif defined(__QNXNTO__)