Re: [RFC PATCH] RISC-V: Implement riscv_minimal_hwprobe_feature_bits

2024-10-13 Thread Yangyu Chen
> On Oct 7, 2024, at 20:37, Kito Cheng wrote: > > I suggest not handling the extension implication rules. This way, it > can simplify > the logic and reduce the cost of run-time checks. > > Also, you need to consider situations where that extension can't be detected. For this, I would also l

Re: [RFC PATCH] RISC-V: Implement riscv_minimal_hwprobe_feature_bits

2024-10-07 Thread Kito Cheng
I suggest not handling the extension implication rules. This way, it can simplify the logic and reduce the cost of run-time checks. Also, you need to consider situations where that extension can't be detected. And last, I would like to defer this until run-time resolver patch coming, but welcome

[RFC PATCH] RISC-V: Implement riscv_minimal_hwprobe_feature_bits

2024-10-05 Thread Yangyu Chen
This patch implements the riscv_minimal_hwprobe_feature_bits feature for the RISC-V target. The feature bits are defined in the previous patch [1] to provide bitmasks of ISA extensions that defined in RISC-V C-API. Thus, we need a function to generate the feature bits for IFUNC resolver to dispatch