aboutsummaryrefslogtreecommitdiff
path: root/debug/programs
AgeCommit message (Collapse)AuthorFilesLines
2017-04-18debug: Don't halt out of reset. It's unrealistic. Use a program which loops ↵Megan Wachs2-0/+14
(actually it just gets an exception anyway).
2017-04-14debug: checkpoint of trying to get simulation tests workingMegan Wachs2-2/+17
2017-03-29Prohibit relaxing the initial gp generationPalmer Dabbelt1-0/+3
I've added an additional linker relaxation that relaxes two instruction pc-relative sequences to one instruction gp relative sequences when possible. This sequence now optimizes the initial gp generation to mv gp, gp which is obviously bogus. The fix is to disable relaxations when setting up gp, preventing the linker from relaxing away this setup code.
2017-03-29Change the global pointer symbol to __global_pointer$Palmer Dabbelt1-1/+1
This changed a while ago in binutils.
2016-12-27Use compressed code if the target supports it.Tim Newsome2-2/+7
The main change was to read misa before running any other test. If misa indicates C is supported, then use compressed code. This required changing some tests, mostly to ensure correct alignment. The single step test also needs to know the correct addresses to step through in compressed code. Only print at most 1000 lines from each log file.
2016-12-07Use XLEN macro for these sources as well.Tim Newsome3-4/+4
All tests pass on spike32 and spike64 again.
2016-12-07Use our own XLEN macro.Tim Newsome1-1/+1
Relying on something that the compiler automatically sets is apparently not reliable.
2016-12-06avoid non-standard predefined macrosAndrew Waterman4-6/+6
2016-09-29Update dmode test to match spec.Tim Newsome1-33/+53
M-mode writes to triggers with dmode set are now ignored instead of raising an exception. Also added -f/--fail-fast option to gdbserver.
2016-09-29Clear triggers during entry.Tim Newsome1-0/+9
If the last test leaves some triggers set they should be cleaned up.
2016-09-02Fix/add to instant trigger tests.Tim Newsome1-1/+3
2016-09-01Add some immediate trigger tests.Tim Newsome1-6/+6
2016-09-01Create TriggerTest.Tim Newsome1-0/+97
2016-08-16Simplify test_function_call.Tim Newsome1-0/+18
Now it doesn't rely on malloc, which can be tricky to get to work in and of itself.
2016-07-28Add tests for virtual priv register.Tim Newsome1-0/+11
Users can use this register to inspect and change the privilege level of the core. It doesn't make any assumptions about the actual underlying debug mechanism (as opposed to having the user change DCSR directly, which may not exist in all debug implementations).
2016-07-19Add 32-bit support.Tim Newsome1-1/+9
2016-07-19I think I've finally got malloc working right.Tim Newsome2-5/+8
Now gdb can call functions and change strings.
2016-07-19Make variables local again, now that gdb is "fixed."Tim Newsome1-6/+2
2016-07-19Add test for gdb function calls.Tim Newsome2-0/+602
2016-07-18Test step over invalid instruction.Tim Newsome1-7/+14
2016-07-18Add explicit test for stepping over branches/jumps.Tim Newsome1-0/+17
2016-07-18Make tests work with broken 32-bit compiler.Tim Newsome1-2/+6
Apparently the 32-bit compiler doesn't generate good enough debug info for gdb to know what function we're in, which also means it doesn't know where the local variables in those functions are stored.
2016-07-18Add simple register tests.Tim Newsome1-30/+31
Make the RegsTest case a bit more comprehensible.
2016-07-18Add block test.Tim Newsome2-2/+2
2016-07-18All tests pass with spike now.Tim Newsome3-4/+139
I did comment out a couple.
2016-07-18Made some progress towards working with spike.Tim Newsome4-55/+85
I'm writing all the tests so they should just work on real hardware, too.
2016-07-18WIP on debug testing.Tim Newsome6-0/+181
./gdbserver.py --m2gl_m2s --openocd "$HOME/SiFive/openocd/src/openocd -s $HOME/SiFive/openocd/tcl" -- RegsTest.test_write_gprs doesn't fail in a completely crazy way.