mirror of https://github.com/torvalds/linux.git
Use riscv_has_extension_likely() to check for RISCV_ISA_EXT_ZBB,
replacing the use of asm goto with ALTERNATIVE.
The "likely" variant is used to match the behavior of the original
implementation using ALTERNATIVE("j %l[no_zbb]", "nop", ...).
While we're at it, also remove bogus comment about Zbb being likely
available. We have to choose between "likely" and "unlikely" due to
limitations of the asm goto feature, but that does not mean we should
put a bad comment on why we pick "likely" over "unlikely".
Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn>
Link: https://patch.msgid.link/20251020-riscv-altn-helper-wip-v4-2-ef941c87669a@iscas.ac.cn
Signed-off-by: Paul Walmsley <pjw@kernel.org>
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| clear_page.S | ||
| csum.c | ||
| delay.c | ||
| error-inject.c | ||
| memcpy.S | ||
| memmove.S | ||
| memset.S | ||
| riscv_v_helpers.c | ||
| strcmp.S | ||
| strlen.S | ||
| strncmp.S | ||
| tishift.S | ||
| uaccess.S | ||
| uaccess_vector.S | ||
| xor.S | ||