aboutsummaryrefslogtreecommitdiff
path: root/riscv/jtag_dtm.cc
AgeCommit message (Collapse)AuthorFilesLines
2021-04-27Implement JTAG BYPASS register. (#697)Tim Newsome1-11/+14
* Implement JTAG BYPASS register. This allows spike to put into a virtual scan chain with other remote_bitbang JTAG devices. * Initialize bypass to 0. Also change what we do on what edge. In theory that's more correct but in practice it doesn't make a difference.
2020-01-13Make minimum RTI behavior more realistic. (#375)Tim Newsome1-32/+35
* Make minimum RTI behavior more realistic. Now DMI will return busy when you'd expect it to, instead of a few scans later. This only matters when testing OpenOCD. There is no other reason to use --dmi-rti. * dmireset only resets busy.
2019-07-11Fix some 32-bit safety issuesAndrew Waterman1-2/+2
2018-12-13Add --dmi-rti and --abstract-rti to test OpenOCD.Tim Newsome1-28/+42
Optionally make spike behave more like real hardware, to automatically test OpenOCD's handling of such hardware.
2018-02-27Add debug module authentication.Tim Newsome1-3/+7
Off by default, enabled with --debug-auth. The protocol is very simple (definitely not secure) to allow debuggers to test their authentication feature. To authenticate a debugger must: 1. Read authdata 2. Write to authdata the value that it just read, plus 1
2017-06-08Reset to "success" instead of "error."dtm_reset_errorTim Newsome1-1/+1
OpenOCD actually checks this initial value now, and there's no reason for it to indicate error.
2017-03-21spec bumpPalmer Dabbelt1-1/+1
2017-02-21Improve debug performance.Tim Newsome1-8/+6
It's still pitiful, but less so. (5KB/s download speed.) The tweaks involve switching to the other context as soon as it might be helpful. The two contexts are executing code, and handling JTAG TAP input.
2017-02-15Implement autoexec. DMI op 2 is just write now.Tim Newsome1-5/+4
Now passing MemTest{8,16,32,64}
2017-02-13dbus -> dmiTim Newsome1-23/+23
2017-02-13Abstract register read mostly working.Tim Newsome1-1/+1
Fails with not supported for 128-bit. Fails with exception (on rv32) with 64-bit. Succeeds (on rv32) with 32-bit.
2017-02-12Fix stack overflow and support --rbb-port=0Tim Newsome1-0/+1
2017-02-08Serve up a correct dmcontrol register.Tim Newsome1-7/+22
2017-02-07OpenOCD does a dmi read and gets dummy value back.Tim Newsome1-7/+93
2017-02-06Refactor remote bitbang code.Tim Newsome1-0/+81