]> Gentwo Git Trees - linux/.git/commit
selftests/riscv: Add Zicbop prefetch test
authorYao Zihong <zihong.plct@isrc.iscas.ac.cn>
Tue, 18 Nov 2025 16:23:25 +0000 (00:23 +0800)
committerPaul Walmsley <pjw@kernel.org>
Wed, 19 Nov 2025 16:19:29 +0000 (09:19 -0700)
commita131fd60796dbfaa6297c0c8ca8e2a7610a64281
treeba6ec39cf518f003689dc4059ff6a93ffeb2ee79
parente0a504984a88a2f1c0131aca5115fd529fc9974a
selftests/riscv: Add Zicbop prefetch test

Add selftests to cbo.c to verify Zicbop extension behavior, and split
the previous `--sigill` mode into two options so they can be tested
independently.

The test checks:
- That hwprobe correctly reports Zicbop presence and block size.
- That prefetch instructions execute without exception on valid and NULL
  addresses when Zicbop is present.

Signed-off-by: Yao Zihong <zihong.plct@isrc.iscas.ac.cn>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://patch.msgid.link/20251118162436.15485-3-zihong.plct@isrc.iscas.ac.cn
Signed-off-by: Paul Walmsley <pjw@kernel.org>
tools/testing/selftests/riscv/hwprobe/cbo.c