diff options
author | Charlie Jenkins <[email protected]> | 2024-07-19 09:15:21 -0700 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2024-07-22 15:36:57 -0700 |
commit | d4c8d79f5199055da38f880f782a3e62c599ff5d (patch) | |
tree | 09bbbd160a31477f36617bb5cb370ad775b12272 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 0f2425411101128a38ad0166268975ca11fbcaeb (diff) |
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 <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Reviewed-by: Andy Chiu <[email protected]>
Link: https://lore.kernel.org/r/20240719-support_vendor_extensions-v3-4-0af7587bbec0@rivosinc.com
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions