From c2b8530591f187987dcd0d5b0fb54971f391f2a2 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 23 Jun 2020 10:09:29 -0700 Subject: [PATCH] Fixed bug 5209 - cpuinfo recognize OpenBSD ARM Brad Smith OpenBSD/arm only supports ARMv7 and and not any CPUs that do not support NEON. --- src/cpuinfo/SDL_cpuinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpuinfo/SDL_cpuinfo.c b/src/cpuinfo/SDL_cpuinfo.c index 70e268bf4..0eb040cc2 100644 --- a/src/cpuinfo/SDL_cpuinfo.c +++ b/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__)