| @@ -427,27 +427,27 @@ check_os_arm_support(void) | | | @@ -427,27 +427,27 @@ check_os_arm_support(void) |
427 | } | | 427 | } |
428 | | | 428 | |
429 | #elif defined(PIPE_ARCH_AARCH64) | | 429 | #elif defined(PIPE_ARCH_AARCH64) |
430 | static void | | 430 | static void |
431 | check_os_arm_support(void) | | 431 | check_os_arm_support(void) |
432 | { | | 432 | { |
433 | util_cpu_caps.has_neon = true; | | 433 | util_cpu_caps.has_neon = true; |
434 | } | | 434 | } |
435 | #endif /* PIPE_ARCH_ARM || PIPE_ARCH_AARCH64 */ | | 435 | #endif /* PIPE_ARCH_ARM || PIPE_ARCH_AARCH64 */ |
436 | | | 436 | |
437 | #if defined(PIPE_ARCH_MIPS64) | | 437 | #if defined(PIPE_ARCH_MIPS64) |
438 | #ifdef __NetBSD__ | | 438 | #ifdef __NetBSD__ |
439 | static void | | 439 | static void |
440 | check_os_arm_support(void) | | 440 | check_os_mips64_support(void) |
441 | { | | 441 | { |
442 | util_cpu_caps.has_msa = false; /* XXX seems there is no way to detect MSA support from userland */ | | 442 | util_cpu_caps.has_msa = false; /* XXX seems there is no way to detect MSA support from userland */ |
443 | } | | 443 | } |
444 | #else | | 444 | #else |
445 | static void | | 445 | static void |
446 | check_os_mips64_support(void) | | 446 | check_os_mips64_support(void) |
447 | { | | 447 | { |
448 | Elf64_auxv_t aux; | | 448 | Elf64_auxv_t aux; |
449 | int fd; | | 449 | int fd; |
450 | | | 450 | |
451 | fd = open("/proc/self/auxv", O_RDONLY | O_CLOEXEC); | | 451 | fd = open("/proc/self/auxv", O_RDONLY | O_CLOEXEC); |
452 | if (fd >= 0) { | | 452 | if (fd >= 0) { |
453 | while (read(fd, &aux, sizeof(Elf64_auxv_t)) == sizeof(Elf64_auxv_t)) { | | 453 | while (read(fd, &aux, sizeof(Elf64_auxv_t)) == sizeof(Elf64_auxv_t)) { |