riscv-isa-sim
riscv-isa-sim copied to clipboard
Trying to print some data collected after simulation finishes running and before termination
I am new to Spike, I am collecting some data from stimulus I am simulating on Spike.
From my understanding, sim_t::run() runs the simulation to completion. However, when I add my code below this function, it gets bypassed and the simulation ends.
Any suggestions on where to add my code to show my changes before the simulation is terminated?
Can't reproduce, adding std::cerr << "Nya~\n";
after auto return_code = s.run();
in spike_main/spike.cc
works fine for me