Support RISC-V
Please support the RISC-V processors in this project.
I'm looking at supporting open architectures in Ethereum software, a necessary step for transparency and decentralization. Prysm uses cpuid in https://github.com/prysmaticlabs/gohashtree to select optimizations implemented in assembly.
@come-maiz Do you have reference documentation? Also, do you have hardware where it would be possible to test implementations?
Yes, and yes. I'm documenting my exploration here: https://collective.flashbots.net/t/risc-v/4793
I'm right now figuring out why if I add:
//go:build riscv64
to detect_riscv.go, it still doesn't see the functions I define there. I'm testing this in a RISC-V QEMU. I haven't programmed in a while, so this will require patience :)
This is my humble approach to read hwprobe:
https://github.com/come-maiz/cpuid/blob/riscv/os_linux_riscv64.go
If you want to guide me, I can continue working on it and make a pull request :)