]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[riscv] Ignore riscv,isa property in favour of direct CSR testing
authorMichael Brown <mcb30@ipxe.org>
Mon, 26 May 2025 20:12:12 +0000 (21:12 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 26 May 2025 20:34:11 +0000 (21:34 +0100)
commit6eb51f1a6a91ebb2251a3c1200dc533d87571be6
treee147ed76a0a99b995d0529e382475ea47849c53b
parent192cfc3cc5af26e9aabdb50bd3488b8a7ad6bbf7
[riscv] Ignore riscv,isa property in favour of direct CSR testing

The riscv,isa devicetree property appears not to be fully populated on
some real-world systems.  For example, the Sipeed Lichee Pi 4A
(running the vendor U-Boot) reports itself as "rv64imafdcvsu", which
does not include the "zicntr" extension even though the time CSR is
present and functional.

Ignore the riscv,isa property and rely solely on CSR testing to
determine whether or not extensions are present.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/riscv/core/zicntr.c
src/arch/riscv/core/zkr.c