Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Spike halting at a symbol

25 views
Skip to first unread message

James Smith

unread,
Jul 31, 2024, 9:49:53 AM7/31/24
to RISC-V SW Dev
Hi,

I'm trying to figure out if there is a method to halt a spike simulation at a particular symbol like _start or main or even to view the memory contents associated with the symbol. 

I can see that it's possible to do so if I give spike (in interactive mode) a command like

mem 0 0x000000008000250c

and that will return

0x0000000000022117

That's pretty straight forward.

So I'm wondering if there is an equivalent for a symbol.  Ideally I'd like to try to do this straight from the command line and without the need for adding pk.

thanks!

James

James Smith

unread,
Jul 31, 2024, 5:58:54 PM7/31/24
to RISC-V SW Dev, James Smith
Hi

To follow-up, I'm trying to get some of the same functionality that I've had previously with an AVR ATMEGA simulation in which I was able to automate the halting on a breakpoint and then printing out particular register and variable values.  I documented that here (https://www.yorku.ca/professor/drsmith/2022/08/28/ad-hoc-unit-testing-on-simavr-and-vpl/) and am hoping to do likewise with RISC-V simulations.

thanks!

James
Reply all
Reply to author
Forward
0 new messages