Skip to content

Commit 628f3e8

Browse files
committed
[compiler-rt][RISCV] Implement __riscv_feature_bits/__riscv_vendor_feature_bits/__init_riscv_features_bit
Base on riscv-non-isa/riscv-c-api-doc#74, this patch defines the __riscv_feature_bits and __riscv_vendor_feature_bits structures to store the enabled feature bits at runtime. It also introduces the __init_riscv_features_bit function to update these structures based on the platform query mechanism. Additionally, the groupid/bitmask definitions from riscv-non-isa/riscv-c-api-doc#74 are declared and used to update the __riscv_feature_bits and __riscv_vendor_feature_bits structures.
1 parent 79b1137 commit 628f3e8

File tree

2 files changed

+528
-0
lines changed

2 files changed

+528
-0
lines changed

compiler-rt/lib/builtins/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@ endif()
716716
set(powerpc64le_SOURCES ${powerpc64_SOURCES})
717717

718718
set(riscv_SOURCES
719+
riscv/ifunc_select.c
719720
riscv/fp_mode.c
720721
riscv/save.S
721722
riscv/restore.S

0 commit comments

Comments
 (0)