aboutsummaryrefslogtreecommitdiff
path: root/debug_rom/debug_rom.h
AgeCommit message (Collapse)AuthorFilesLines
2017-04-18debug: Add fence and fence.i to ensure Debug RAM is ready.Megan Wachs1-4/+5
2017-04-17debug: Use a more practical debug ROMMegan Wachs1-14/+9
2016-09-02Rebuild debug ROM because CSR encoding changed.Tim Newsome1-2/+2
2016-06-22Parameterize debug ROM contents on XLENAndrew Waterman1-14/+11
2016-06-09Fix 2 bugs in Debug ROM: (#52)Tim Newsome1-5/+5
1. Debug ROM wasn't actually writing 0xffffffff to the last word in Debug RAM after an exception happened. 2. Fix a race where debug interrupts were cleared before that write would have happened, so a debugger (gdbserver.cc in this case) might get the wrong idea about whether an exception happened or not. Why wasn't this wreaking havoc before?
2016-06-03DCSR cause was moved, bug debug ROM wasn't updatedTim Newsome1-1/+1
As a result Debug ROM would always take the spontaneous halt code path. This didn't hurt spike since (so far?) the spike debug handler doesn't attempt to do anything quick while code is running. But now the ROM is more correct.
2016-06-01Move sethaltnot and cleardebint.Tim Newsome1-2/+2
Now it matches Krste's memory map.
2016-05-24New encoding.h for new CSR addresses.Tim Newsome1-4/+4
2016-05-24Move cleardebint, per spec.Tim Newsome1-2/+2
2016-05-23Change DCSR bits to match spec.Tim Newsome1-3/+3
Cleaned up debug ROM code a little.
2016-05-23Use fence.i in Debug ROM.Tim Newsome1-9/+9
This replaces a hack that just disabled all of the icache.
2016-05-23Add dret.Tim Newsome1-1/+1
2016-05-23Implement single memory read access.Tim Newsome1-16/+17
Prevent unaligned accesses in memory read. Also change how exceptions in Debug Mode are signaled.
2016-05-23Exceptions in Debug Mode, stay in Debug Mode.Tim Newsome1-15/+16
Now things don't blow up when reading a non-existent CSR.
2016-05-23Have Debug memory kind of working again.Tim Newsome1-8/+8
Debug exception -> ROM -> RAM -> ROM, then something goes wrong.
2016-05-23Fix race using fence.Tim Newsome1-16/+15
2016-05-23processor_t unfriends gdbserver_t.Tim Newsome1-1/+1
2016-05-23Add debug_module bus device.Tim Newsome1-4/+4
This should replace the ROM hack I implemented earlier, but for now both exist together. Back to the point where gdb connects, core jumps to ROM->RAM->ROM.
2016-05-23ROM -> RAM -> ROM, waiting for debug int.Tim Newsome1-1/+1
2016-05-23Jump to the correct (temporary) Debug RAM address.Tim Newsome1-5/+5
2016-05-23Clean up how Debug ROM is included.Tim Newsome1-0/+18
I'm not thrilled about including a static copy in so many cc files, and making the compiler throw it out. But without really grokking the Makefile this is the best it's going to be.