aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-02-17Fix use of REG vs CSR constants.Tim Newsome1-26/+30
23 gdbserver.py tests pass now. Change-Id: I32805d615ae5f536f179baf906e0e74a56e80c0b
2017-02-17Bunch of register access refactoring.Tim Newsome2-546/+161
Got rid of the last reference to the old debug RAM code! (Mostly?) SimpleF18Test passes now. Change-Id: Iab51d436a50bec9a5e504df7fb3cd6be874da0be
2017-02-16Check busy before triggering another command.Tim Newsome1-46/+50
This version was able to download code, and run to a breakpoint. Change-Id: I0ead8350579263d8e55f8df35e2b7af6c374ef21
2017-02-15Check for errors after read/write.Tim Newsome1-4/+12
The code doesn't do anything intelligent if errors are found. But MemTestBlock now also passes. I'm not quite sure why. Change-Id: I8512f0a96db9e34d3db6a4a9bcef6e56f191d4c1
2017-02-15Fix double read, which might have side effects.Tim Newsome1-4/+6
Now passing MemTest{8,16,32,64} Change-Id: I286d1e2a388d41853e5aa9049490ddb6135b61f1
2017-02-15Make MemTest32 pass.Tim Newsome1-2/+2
Change-Id: I9be90b07be695c976380f9fd50b971f8bb94f513
2017-02-15Some memory access works.Tim Newsome2-351/+161
MemTest16 passes, but MemTest32 fails. Change-Id: I17fbc38b4228b27c7fb3dadb15e9c1a2f67bcd65
2017-02-14Merge pull request #15 from sifive/get_set_reg_errorTim Newsome2-9/+45
Use the set/reg register error return code when registers don't exist.
2017-02-14Make general CSR reads work.Tim Newsome1-36/+22
Change-Id: Ic9b7e065b7303b3707c28c9b7c496cc1c1e91acd
2017-02-14Make it all the way through examine().Tim Newsome1-220/+85
This includes reading GPRs (although I haven't confirmed the values) and doing some CSR reading/writing to disable triggers that may be left over from a previous setting. Change-Id: I2c627bd002d601e302a40f838087541897c025fd
2017-02-14More dbus->dmi.Tim Newsome1-21/+65
Change-Id: Ia691f1e7ce909da4d9c16e6d691c4f2cf768a7fb
2017-02-13Read misa during examine(), using program buffer.Tim Newsome2-100/+939
Change-Id: Icad5324d216b61207cb5f6024b2deab065658640
2017-02-13dbus -> dmiTim Newsome2-160/+160
Change-Id: I4c3343f8f5ffd45e3d76a2218aaa5dee8e546839
2017-02-13Discover XLEN using abstract reg reads.Tim Newsome2-42/+64
Change-Id: Ib7480b8e4925cf08e5b59d263bcdcc672a89dc4b
2017-02-10Attempt to discover XLEN with abstract reg readsTim Newsome4-108/+118
Change-Id: I7ce9c8c0c34bd875dba11596e6f6268320b2fb3a
2017-02-10riscv: Add register name to message when they do not exist.Megan Wachs2-7/+7
2017-02-10Halt target in riscv_examine().Tim Newsome2-30/+45
Change-Id: I11ab915901f2e75f9b728d6cf72c6498e3950ded
2017-02-09Add debug_defines.h.Tim Newsome1-0/+630
Change-Id: I94753f9bed11cbc978daa0f3ea3ecf2023b93893
2017-02-08Detect and smoketest data and ibuf registers.Tim Newsome1-28/+69
Change-Id: I7ee4817ec63041a1577b83392d40b676fb67c207
2017-02-08Correctly parse dmcontrol.Tim Newsome1-51/+29
Change-Id: Ibae425f4ccbe9e504c41e185f264f667e091fca4
2017-02-07Update DMI bus width for 0.13.Tim Newsome2-10/+2
Change-Id: Ieff13a7a0084fe822b7cc6d927727eba4f158ef0
2017-02-07Merge remote-tracking branch 'origin/riscv' into HEADMegan Wachs7-2297/+6016
2017-02-06Merge pull request #16 from sifive/0.13Tim Newsome6-2297/+5375
Refactor code to support multiple debug spec versions.
2017-02-05Add missing header file.Tim Newsome1-0/+62
Change-Id: I19df5112c2503ec6652f2d09e7324180af5024df
2017-02-05Use the set/reg register error return code when registers don't exist.Megan Wachs2-9/+45
2017-02-05Add the first difference for 0.13 targets.Tim Newsome1-1/+1
Just to confirm the 0.13 code takes a different path. Change-Id: I7f1c9c8f3b586aee001dbeef2213f5f2e6a94f36
2017-02-05Use the csrNNN name instead of "mstatus".Tim Newsome1-2/+6
Fixes flashing code. Change-Id: Id12c926f5ada009e06f6601362deefec946afc98
2017-02-05Most gdbserver tests pass now.Tim Newsome5-2296/+5308
Change-Id: I14a8360d9cf2800ca5e6a44f7e58102b2baef719
2017-01-26Merge pull request #13 from sifive/disable_interruptsTim Newsome1-0/+18
riscv: Globally disable interrupts when running algorithms.
2017-01-25riscv: disable interrupts for all priviledge levelsMegan Wachs1-3/+2
2017-01-25riscv: Use proper UINT packing and unpacking routines for disabling ↵Megan Wachs1-5/+12
interrupts before running algorithms.
2017-01-25riscv: Globally disable interrupts when running algorithms.Megan Wachs1-0/+12
2016-12-24Merge pull request #11 from sifive/malloc_off_by_1Tim Newsome1-1/+1
Correct off by 1 in malloc
2016-12-23Correct off by 1 in malloc, which causes this to fail on macOS (and in ↵mwachs51-1/+1
theory on any platform).
2016-12-19Merge pull request #9 from sifive/increase_as_sizeTim Newsome1-1/+1
riscv: Increase the number of Algorithm Steps
2016-12-18riscv: Increase the number of Algorithm StepsMegan Wachs1-1/+1
2016-12-08Merge pull request #7 from sifive/temp_verify_blank_checkTim Newsome1-0/+30
riscv: implement skeletons for Memory Blank Check and CRC.
2016-12-07riscv: implement skeletons for Memory Blank Check and CRC. Otherwise you ↵Megan Wachs1-0/+30
just get a segfault when attempting to perform these actions.
2016-12-01Fix issue #6: build failure on gcc 6Tim Newsome1-1/+1
Change-Id: If890a6d62fdd55befb9057f83726f60721ac8078
2016-11-30Merge pull request #5 from sifive/format-warningTim Newsome1-1/+1
Use portable format specifier for size_t
2016-11-30Use portable format specifier for size_tAlbert Ou1-1/+1
This fixes a gcc warning [-Werror=format] on an i686-pc-linux-gnu host, which defines size_t as unsigned int instead of long int.
2016-11-30Merge pull request #4 from sifive/mwachs5-patch-sckdivMegan Wachs1-4/+0
Don't write SCKDIV when flashing
2016-11-27Don't write SCKDIV when flashingMegan Wachs1-4/+0
The target may have already configured its clock to run at a higher frequency and would have set SCKDIV and other dividers at that time. Don't restore the SCKDIV to its default or the flash interface may run too fast and programming will fail. Otherwise, the default value is fine and there is no need to write SCKDIV.
2016-11-27Add timeout to infinite loop.Tim Newsome1-1/+13
Change-Id: I7d005b4779154b4dfe8c9a26f4f0e351f426df9b
2016-11-25Add some timeouts that I ran into.Tim Newsome1-11/+48
Change-Id: I8eeb1c934ceead0d99dcdc618a3f8aa351119cb0
2016-11-25Cope better if the target unexpectedly resets.Tim Newsome1-4/+11
Change-Id: I713f7f8a3afbbb02be0e2f19f4d32778366d37f9
2016-11-23Fix typo.Tim Newsome1-1/+1
Change-Id: If04ba1103817f772fe55659cb3b5b4533c734f2a
2016-11-19Merge branch 'sifive/add_issi_flash' into riscvTim Newsome1-1/+1
2016-11-19Fix off-by-one error in assert.Tim Newsome1-1/+1
Change-Id: I86447c747a212175be560170378c655ac801f5a6
2016-11-19Add the ISSI SPI Flash to the listMegan Wachs1-1/+1