Closed TommyMurphyTM1234 closed 4 months ago
no objections (at least not from me). Another way to tackle the problem would be to introduce a command-line option to spike to set IDCODE for the respected TAP - this may be an overkill though, so I guess changing openocd configuration to mirror spike IDCODE is reasonble
no objections (at least not from me).
Thanks @aap-sc.
Another way to tackle the problem would be to introduce a command-line option to spike to set IDCODE for the respected TAP - this may be an overkill though, so I guess changing openocd configuration to mirror spike IDCODE is reasonble
Yes, I was wondering about that too but I guess that such an enhancement to Spike should only be implemented if/when there is a compelling case for it - for general Spike use and/or if it serves some purpose for testing purposes.
Addressed by this PR:
When testing against Spike, these OpenOCD scripts are used:
-expected-id 0x10e31913
specifies the IDCODE of the SiFive HiFive1's FE310:However Spike uses the IDCODE
0xdeadbeef
:So, the mismatch between the expected and actual IDCODE leads to these distracting warning/error messages:
I propose chainging the Spike OpenOCD scripts to use
-expected-id 0xdeadbeef
to match the actual expected IDCODE of this target. Or maybe even-expected-id 0
to skip IDCODE checking altogether in case the Spike IDCODE ever changes?However I suspect that checking for the actual expected IDCODE is better than not checking at all?
Does anybody see any problem with this? If not then I'll prepare a PR.