Skip to content

Commit

Permalink
Fixed bug 5209 - cpuinfo recognize OpenBSD ARM
Browse files Browse the repository at this point in the history
Brad Smith

OpenBSD/arm only supports ARMv7 and and not any CPUs that do not support NEON.
  • Loading branch information
slouken committed Jun 23, 2020
1 parent 4ba0a84 commit c2b8530
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cpuinfo/SDL_cpuinfo.c
Expand Up @@ -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__)
Expand Down

0 comments on commit c2b8530

Please sign in to comment.