libriscv
libriscv copied to clipboard
riscv compliance
Hello
First of all great piece of code, I really enjoy this style of writing, keep it up :)
And the actual question, did this emulator pass the https://github.com/riscv/riscv-compliance tests? And if so, how can I run them myself?
I did not find any information (at least yet) on this topic
No, I haven't actually run any of that with the emulator. I've only been using selected programs that I've written myself inside it, although it's a great number. I do some research on RISC-V.
But I should make an effort to pass all the relevant tests and do it as part of testing. Thanks for letting me know about the compliance repository!
There is now a verification test runner: https://github.com/fwsGonzo/libriscv/tree/master/tests/elf
It passes everything except fsflags emulation. I will work on that at some point, perhaps enable it as a build option. The tests can be found here: https://github.com/riscv/sail-riscv/tree/master/test/riscv-tests
I think this can be closed now as the emulator is fairly mature at this point.