riscv-software-src / riscv-tests

Other
876 stars 451 forks source link

How to run ./debug/programs/interrupt.c #500

Open Shuangxie0708 opened 1 year ago

Shuangxie0708 commented 1 year ago

I want to compile interrupt.c and run it to observe the wave of how the interrupt process in cva6. But I don't know how to compile and run it. Could you teach me how to do it? Thanks!

timsifive commented 1 year ago

It's not a stand-alone test, but is intended to be run as part of the other debug tests. debug/README.md has some general info. InterruptTest in gdbserver.py is the specific test that uses this program.

If you just want the binary, running the test as described there will also show you the command line it uses to build that binary.