Unified · Split
| @@ -29,14 +29,14 @@ · 28 unmodified lines | |||
| 29 | #include <sys/auxv.h> | 29 | #include <sys/auxv.h> |
| 30 | #define HWCAP_RV(letter) (1ul << ((letter) - 'A')) | 30 | #define HWCAP_RV(letter) (1ul << ((letter) - 'A')) |
| 31 | #endif | 31 | #endif |
| 32 | #ifdef HAVE_SYS_HWPROBE_H | 32 | #if HAVE_SYS_HWPROBE_H |
| 33 | #include <sys/hwprobe.h> | 33 | #include <sys/hwprobe.h> |
| 34 | #endif | 34 | #endif |
| 35 | 35 | ||
| 36 | int ff_get_cpu_flags_riscv(void) | 36 | int ff_get_cpu_flags_riscv(void) |
| 37 | { | 37 | { |
| 38 | int ret = 0; | 38 | int ret = 0; |
| 39 | #ifdef HAVE_SYS_HWPROBE_H | 39 | #if HAVE_SYS_HWPROBE_H |
| 40 | struct riscv_hwprobe pairs[] = { | 40 | struct riscv_hwprobe pairs[] = { |
| 41 | { RISCV_HWPROBE_KEY_BASE_BEHAVIOR, 0 }, | 41 | { RISCV_HWPROBE_KEY_BASE_BEHAVIOR, 0 }, |
| 42 | { RISCV_HWPROBE_KEY_IMA_EXT_0, 0 }, | 42 | { RISCV_HWPROBE_KEY_IMA_EXT_0, 0 }, |