Rémi Denis-Courmont
0e32192548
lavu/riscv: do not fallback to AT_HWCAP auxillary vector
...
If __riscv_hwprobe() fails, then the kernel version is presumably too
old. There is not much point falling back to the auxillary vector.
- The Linux kernel requires I, so the flag is always set on Linux, and
run-time detection is unnecessary. Our RISC-V assembler does anyway not
support targets without I.
- Linux can compile with or without F and D, but it cannot perform
run-time detection for them (a kernel with F support will not boot a
processor without F). The run-time detection is thus useless in that
case. Besides F and D extensions are used throughout the C code, so
their run-time detection would not be practical.
- Support for V was added in a later kernel version than riscv_hwprobe(),
so the system call will always be available if the kernel supports V.
The only exception would be vendor kernel forks, but those are known to
haphasardly pretend to support V on systems without actual V support, or
with only pre-ratification binary-incompatible version. Furthermore, a
large chunk of our optimisations require Zba and/or Zbb which cannot be
detected with HWCAP in those kernels.
For what it is worth, OpenJDK already took a similar action. Note that this
keeps AT_HWCAP usage for platforms with neither C run-time <sys/hwprobe.h>
nor kernel <asm/hwprobe.h>, notably kernels other than Linux.
2024-07-22 19:43:51 +03:00
..
2024-06-26 02:06:53 -04:00
2024-06-13 21:16:16 +03:00
2023-05-25 21:05:21 +02:00
2024-03-15 12:51:15 +01:00
2024-05-18 07:38:40 -04:00
2024-07-22 19:43:51 +03:00
2024-05-28 03:48:05 +02:00
2024-07-11 18:24:26 -03:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-10-17 09:56:47 +02:00
2022-10-24 16:28:14 +02:00
2022-10-17 09:56:47 +02:00
2024-06-20 17:02:50 -03:00
2023-01-13 21:26:13 +02:00
2022-10-10 13:43:59 +02:00
2022-03-16 12:29:37 -03:00
2023-09-12 09:20:13 +02:00
2023-09-12 09:20:13 +02:00
2023-07-12 15:35:37 +02:00
2024-07-21 17:02:12 +02:00
2024-03-10 13:51:37 +01:00
2023-09-07 00:48:50 +02:00
2024-03-07 08:53:30 -03:00
2024-05-13 03:26:57 +02:00
2022-02-24 12:56:49 +01:00
2023-08-10 08:53:38 +02:00
2024-03-04 17:45:00 +01:00
2024-06-13 21:16:16 +03:00
2022-02-24 12:56:49 +01:00
2024-07-21 17:02:13 +02:00
2022-02-24 12:56:49 +01:00
2022-10-17 09:55:19 +02:00
2022-11-11 12:24:23 +01:00
2024-06-02 18:34:38 +02:00
2024-06-02 18:34:38 +02:00
2024-06-14 14:28:25 +02:00
2022-09-27 13:19:52 +02:00
2024-05-14 19:50:00 +03:00
2024-05-14 19:50:00 +03:00
2022-02-24 12:56:49 +01:00
2022-10-17 09:56:47 +02:00
2023-02-09 15:35:14 +01:00
2023-02-09 15:35:14 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-10-17 09:56:47 +02:00
2024-03-31 00:08:43 +01:00
2022-10-17 09:56:47 +02:00
2022-09-03 15:41:44 +02:00
2024-03-08 01:01:49 +01:00
2022-11-06 08:26:50 +01:00
2022-02-24 12:56:49 +01:00
2022-10-17 09:55:19 +02:00
2024-04-03 16:16:25 +02:00
2024-06-22 15:48:23 +02:00
2023-09-04 11:04:45 +02:00
2023-09-07 00:42:10 +02:00
2024-04-25 14:13:47 +01:00
2024-04-25 14:13:47 +01:00
2024-03-31 00:08:43 +01:00
2023-11-18 19:55:42 +01:00
2024-07-11 20:26:23 +08:00
2024-06-27 20:54:42 +08:00
2024-03-07 08:53:30 -03:00
2024-03-27 17:07:22 +01:00
2024-07-16 22:50:21 +08:00
2022-09-03 15:41:44 +02:00
2024-03-07 08:53:30 -03:00
2024-03-27 17:07:22 +01:00
2024-03-31 00:08:43 +01:00
2024-03-23 18:55:15 +01:00
2024-03-31 00:08:43 +01:00
2024-03-15 12:51:15 +01:00
2022-08-19 22:09:36 +02:00
2022-08-19 22:09:36 +02:00
2024-05-31 22:22:43 +03:00
2024-06-01 11:15:30 -03:00
2024-07-21 17:02:13 +02:00
2024-04-18 12:24:43 -03:00
2022-06-21 13:27:46 +03:00
2022-08-19 22:09:36 +02:00
2022-08-19 22:09:36 +02:00
2024-03-18 01:48:46 +01:00
2023-04-05 09:47:12 -03:00
2024-03-04 17:45:12 +01:00
2022-03-01 09:08:43 +08:00
2023-03-17 18:51:16 +08:00
2023-09-07 00:42:10 +02:00
2024-03-07 08:53:31 -03:00
2023-09-28 19:23:51 +02:00
2024-07-10 18:10:09 +02:00
2023-12-21 16:15:23 +08:00
2024-07-02 14:15:12 +02:00
2024-07-02 14:15:12 +02:00
2024-03-31 00:08:43 +01:00
2024-07-10 18:10:09 +02:00
2024-03-07 08:53:31 -03:00
2023-01-26 23:31:37 +08:00
2023-01-26 23:31:37 +08:00
2024-03-07 08:53:31 -03:00
2024-05-28 03:48:04 +02:00
2024-05-20 09:30:48 +08:00
2022-07-05 15:20:08 +02:00
2024-04-29 11:08:41 +08:00
2024-03-07 08:53:31 -03:00
2024-07-16 19:51:45 +08:00
2024-07-05 19:13:43 +08:00
2024-06-12 01:53:18 +02:00
2024-03-31 00:08:43 +01:00
2024-03-07 08:53:31 -03:00
2024-03-07 08:53:31 -03:00
2024-05-04 21:31:33 -03:00
2024-01-15 18:16:07 -03:00
2024-03-31 00:08:43 +01:00
2024-07-12 22:16:05 +02:00
2023-12-13 18:51:32 +01:00
2022-10-24 20:11:20 +02:00
2022-02-24 12:56:49 +01:00
2024-03-31 00:08:43 +01:00
2024-06-14 14:28:25 +02:00
2024-06-14 21:28:10 +03:00
2022-10-17 09:56:47 +02:00
2024-06-01 18:05:58 +03:00
2024-06-01 18:05:58 +03:00
2023-11-09 11:25:17 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2024-06-18 15:24:12 +08:00
2024-03-25 21:30:51 +01:00
2024-06-20 17:02:50 -03:00
2024-04-11 11:46:18 -03:00
2023-05-29 00:45:28 +02:00
2023-05-29 00:45:28 +02:00
2023-09-07 00:42:10 +02:00
2024-03-01 01:35:42 +01:00
2024-03-31 00:08:43 +01:00
2023-09-07 00:42:10 +02:00
2023-09-07 00:42:10 +02:00
2024-05-07 20:11:42 -03:00
2024-05-07 20:11:42 -03:00
2022-10-17 09:56:47 +02:00
2024-03-31 00:08:43 +01:00
2024-04-03 21:31:35 +03:00
2023-10-31 15:46:07 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2024-04-03 21:31:35 +03:00
2022-02-24 12:56:49 +01:00
2024-05-28 03:48:05 +02:00
2023-07-05 10:25:12 -07:00
2024-02-04 20:04:18 +01:00
2024-02-12 00:50:46 +01:00
2022-02-24 12:56:49 +01:00
2022-10-17 09:56:47 +02:00
2022-02-24 12:56:49 +01:00
2023-09-12 09:17:28 +02:00
2023-09-12 09:17:28 +02:00
2024-01-16 01:34:57 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2024-07-21 17:02:13 +02:00
2023-06-23 02:06:46 +02:00
2024-06-18 14:47:40 +01:00
2024-06-18 14:47:40 +01:00
2024-06-28 13:16:57 -03:00
2024-06-28 13:16:57 -03:00
2022-02-24 12:56:49 +01:00
2024-02-05 09:42:30 +01:00
2023-09-07 00:42:10 +02:00
2024-07-21 15:29:25 +02:00
2024-01-14 14:58:57 +01:00
2024-06-18 15:24:02 +08:00
2024-06-30 09:11:44 +02:00
2024-03-25 21:30:51 +01:00
2022-02-24 12:56:49 +01:00
2022-10-17 09:51:47 +02:00
2023-09-07 00:42:10 +02:00
2024-03-31 00:08:43 +01:00
2024-03-31 00:08:43 +01:00
2023-09-01 23:59:10 +02:00
2022-05-10 06:49:32 +02:00
2022-06-12 18:34:28 +10:00
2022-10-17 09:56:47 +02:00
2022-03-17 11:11:17 +02:00
2024-03-31 00:08:42 +01:00
2024-07-02 14:15:12 +02:00
2023-01-31 14:22:54 +02:00
2023-10-30 10:30:05 -03:00
2023-08-08 09:46:11 +02:00
2023-08-08 09:46:11 +02:00
2024-03-25 08:54:40 +01:00
2024-03-25 08:54:40 +01:00
2024-07-14 18:33:56 +02:00
2024-07-14 18:33:56 +02:00
2024-07-10 18:10:10 +02:00
2022-02-24 12:56:49 +01:00