aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-08-07rv64[ms]i-csr: Only emit F instructions when compiled for F.Richard Xia1-1/+6
2017-08-04RV32 div tests should use -2^31 for min value, not -2^63Andrew Waterman3-9/+9
2017-08-04Improve RVC testAndrew Waterman3-9/+9
Make the page-crossing instruction non-idempotent to detect erroneously executing the first 16 bits of the instruction with garbage MSBs.
2017-07-31Fix the end of MulticoreTest.Tim Newsome1-30/+22
Now it actually confirms that we're talking to two different cores which have different values in their registers. Previously it could have been fooled if eg. the thread command was a nop.
2017-07-27Make pylint happy.Tim Newsome1-2/+2
2017-07-26Use new OpenOCD messages to determine gdb port.Tim Newsome1-41/+8
This is simpler and more reliable than playing around with lsof. Specifically, it works if the OpenOCD command is "strace openocd" while the previous code did not.
2017-07-21Only clean up logfiles that we know we created.Tim Newsome1-1/+1
2017-07-20Add back code to clean up triggers in entry.STim Newsome3-0/+24
Then for targets that can't handle this because they don't implement hmode, add a target setting that allows that to be specified.
2017-07-18Check all PCs after reset.Tim Newsome1-1/+7
2017-07-12Print out logs in more failure cases.Tim Newsome1-4/+10
2017-07-06Merge pull request #58 from riscv/fpga_reset_haltTim Newsome1-0/+5
debug: Make the 'out of reset' tests apply reset
2017-07-06debug: Make the 'out of reset' tests actually apply resetmwachs51-0/+5
2017-07-03Add gdb_setup to target for arbitrary gdb commandsTim Newsome2-0/+7
I'm using this for a target where misa is at an old address, to set riscv use_compressed_breakpoints off
2017-07-03Don't clear triggers during execution.Tim Newsome1-9/+0
This shouldn't affect triggers set by the debugger, because running code can't change those. When it does affect them, it breaks Hwbp1 which sets the breakpoint before running the program.
2017-06-27Tolerate missing misa register.Tim Newsome1-1/+7
At least in the test programs. There are other places where this causes trouble as well.
2017-06-27Merge pull request #55 from riscv/debugTim Newsome1-1/+1
Test gdb/OpenOCD during regular test run.
2017-06-27Merge pull request #56 from riscv/configTim Newsome26-284/+184
Move target definition into individual files.
2017-06-26Move target definition into individual files.Tim Newsome26-284/+184
Instead of defining each target in targets.py, now each target gets its own .py file. This means people can easily keep their own target files around that they may not want to put into the main test source. As part of that, I removed the freedom-u500-sim target since I assume it's only used internally at SiFive. Added a few cleanups as well: * Update README examples, mostly --sim_cmd instead of --cmd. * Allow defining misa in a target, to skip running of ExamineTarget. * Rename target.target() to target.create(), which is less confusing. * Default --sim_cmd to `spike` * Got rid of `use_fpu`, instead looking at F or D in $misa.
2017-06-23Test gdb/OpenOCD during regular test run.Tim Newsome1-1/+1
2017-06-22Add basic multicore test.Tim Newsome3-42/+128
2017-06-20Smoketest multicore.Tim Newsome3-14/+55
When connecting to gdb, select a random thread and use that for the current test. Also replace infinite_loop with something that will later allow smoketesting of more than one thread.
2017-06-19Write OpenOCD log when it crashes early.Tim Newsome1-2/+4
2017-06-16Store logs for all tests in logs/Tim Newsome1-30/+58
This creates a record of passing as well as failing tests, and gets rid of the log clutter that you previously ended up with in the current directory.
2017-06-15Test 64-bit addressing.Tim Newsome8-29/+90
The spike64 target now links all test programs at 0x7fff_ffff_ffff_0000. Also a minor change to log file naming so that 'make all' works again. I'll fix this better later.
2017-06-09Add final echo to E300/U500 OpenOCD scriptsTim Newsome2-0/+2
2017-06-09Make HiFive1 testing (mostly) work againTim Newsome2-2/+5
Currently failing: DebugChangeString DebugFunctionCall InstantHaltTest
2017-06-09Fix using defaults for --server_cmd and --sim_cmdTim Newsome1-1/+1
2017-06-09Default to openocd, not riscv-openocdTim Newsome1-1/+1
AFAICT the normal build process never builds a binary called riscv-openocd.
2017-06-05Make pylint happy.Tim Newsome3-10/+13
If we want we can start using print(), but if so let's consistently use it instead of piecemeal. See also https://stackoverflow.com/questions/28694380/pylint-says-unnecessary-parens-after-r-keyword
2017-05-25Merge pull request #53 from richardxia/fail-if-simulator-exits-earlyPalmer Dabbelt1-0/+6
Fail if simulator exits early.
2017-05-23Fail if simulator exits early.Richard Xia1-0/+6
2017-05-22minNum -> minimumNumberAndrew Waterman2-4/+16
2017-05-18Merge pull request #52 from riscv/vcs_sim_cmdMegan Wachs1-1/+1
debug: Correct the calling for a 32-bit simulation target
2017-05-18debug: Correct the calling for a 32-bit simulation targetMegan Wachs1-1/+1
2017-05-17Manually assemble bad shift amount, since assembler rejectsAndrew Waterman1-1/+1
Resolves #51
2017-05-17Shorten the debug testsPalmer Dabbelt1-4/+4
2017-05-17Merge pull request #49 from riscv/no_examine_targetPalmer Dabbelt1-1/+10
No Examine Target
2017-05-17Show the debug logs to stdout, to avoid travis timeoutsPalmer Dabbelt1-1/+1
2017-05-16debug: remove unused auto_int functionMegan Wachs1-3/+0
2017-05-16debug: Allow skipping the ExamineTarget task.Megan Wachs1-4/+9
2017-05-16debug: Allow skipping the ExamineTarget step by specifying misaMegan Wachs1-1/+8
2017-05-16Merge pull request #47 from riscv/debug-0.13Palmer Dabbelt21-188/+291
Debug 0.13 Tests
2017-05-16Change Spike's RAM location to match the linker scriptPalmer Dabbelt1-2/+2
2017-05-16Link the infinate loop at 0x10000000Palmer Dabbelt3-1/+3
Spike appears to have a problem geterating DTS at 0x80000000.
2017-05-16Link in encoding.h instead of providing a path to itPalmer Dabbelt5-4/+5
2017-05-16debug: Update OpenOCD configs.Megan Wachs2-5/+4
2017-05-15Copy debug/programs to the build dir, so debug-check runsPalmer Dabbelt1-1/+2
2017-05-15Merge pull request #48 from riscv/testsPalmer Dabbelt4-106/+117
Get the test running on Spike again
2017-05-15Disable another PRIV mention, for nowPalmer Dabbelt1-1/+2
2017-05-15Disable the tests that touch PRIV, it's not implemented yetPalmer Dabbelt1-62/+63