diff options
author | 2024-07-19 09:15:21 -0700 | |
---|---|---|
committer | 2024-07-22 15:36:57 -0700 | |
commit | d4c8d79f5199055da38f880f782a3e62c599ff5d (patch) | |
tree | 09bbbd160a31477f36617bb5cb370ad775b12272 /scripts/generate_rust_analyzer.py | |
parent | riscv: Introduce vendor variants of extension helpers (diff) | |
download | wireguard-linux-d4c8d79f5199055da38f880f782a3e62c599ff5d.tar.xz wireguard-linux-d4c8d79f5199055da38f880f782a3e62c599ff5d.zip |
riscv: cpufeature: Extract common elements from extension checking
The __riscv_has_extension_likely() and __riscv_has_extension_unlikely()
functions from the vendor_extensions.h can be used to simplify the
standard extension checking code as well. Migrate those functions to
cpufeature.h and reorganize the code in the file to use the functions.
Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Andy Chiu <andy.chiu@sifive.com>
Link: https://lore.kernel.org/r/20240719-support_vendor_extensions-v3-4-0af7587bbec0@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions