libriscv icon indicating copy to clipboard operation
libriscv copied to clipboard

riscv compliance

Open cszawisza opened this issue 3 years ago • 1 comments

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

cszawisza avatar Jan 08 '21 19:01 cszawisza

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!

fwsGonzo avatar Jan 08 '21 19:01 fwsGonzo

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

fwsGonzo avatar Nov 07 '23 23:11 fwsGonzo

I think this can be closed now as the emulator is fairly mature at this point.

fwsGonzo avatar Jan 04 '24 17:01 fwsGonzo