• P
    Add support for runtime CPU feature check on POWER on FreeBSD. · 68e425f8
    Piotr Kubaj 提交于
    1. Code uses PPC_FEATURE_HAS_VSX, but it's not checked similarly to
    PPC_FEATURE2_ARCH_3_00 and PPC_FEATURE2_ARCH_3_00 for availability. FreeBSD has
    those macros in machine/cpu.h, but I went with the way chosen for
    PPC_FEATURE2_ARCH_3_00 and PPC_FEATURE2_ARCH_3_00. Other than that, FreeBSD also
    has sys/auxv.h and that's where elf_aux_info() is defined.
    2. getauxval() is actually Linux-only, but code checked for __unix__. It won't
    work on all UNIX, so change it back to __linux__. Add another code variant
    strictly for FreeBSD.
    3. Update comment. This commit adds code for FreeBSD, but recently there
    appeared support for powerpc64 in OpenBSD.
    68e425f8
system.cpp 80.4 KB