[PATCH bpf-next 1/2] selftests/bpf: use host CPU features in JIT disassembler

Björn Töpel bjorn at kernel.org
Wed Jun 3 00:21:41 PDT 2026


On Tue, 2 Jun 2026 at 22:59, Varun R Mallya <varunrmallya at gmail.com> wrote:
>
> Pass the host CPU name and feature string to
> LLVMCreateDisasmCPUFeatures() instead of using LLVMCreateDisasm(), so
> the disassembler correctly decodes CPU-specific instructions and
> extensions such as RISC-V compressed and vector instructions.
>
> Signed-off-by: Varun R Mallya <varunrmallya at gmail.com>

Reviewed-by: Björn Töpel <bjorn at kernel.org>



More information about the linux-riscv mailing list