aboutsummaryrefslogtreecommitdiff
path: root/debug/targets/SiFive
AgeCommit message (Collapse)AuthorFilesLines
2023-05-01Update OpenOCD cfg files to new syntaxTim Newsome3-13/+13
We were using a variety of deprecated commands. The driving force behind this was the new way to use `expr{}` as the old way no longer works with mainline OpenOCD.
2020-12-31Make HiFiveUnleashed tests clean.Tim Newsome3-0/+7
HiFiveUnleashed-flash fails som address translation tests. Possibly that would be fixed when https://github.com/riscv/riscv-tests/pull/313 merges.
2020-03-18Specify misa for HiFive Unleashed. (#259)Tim Newsome1-0/+2
This saves a few seconds every time I run any test.
2019-12-02Use a small binary to set up HiFive Unleashed. (#221)Tim Newsome3-10/+10
This binary comes from https://github.com/timsifive/freedom-u540-c000-bootloader/tree/board_setup2, which will hopefully be accepted upstream.
2019-10-15Add support to run all tests against HiFive Unleashed. (#212)Tim Newsome5-0/+184
* Parse inf/nan floats. * Enable mstatus.fs in SimpleF18Test Also accept "unable to fetch" message when FPRs aren't supported. * Add config files for HiFive Unleashed. * Add configs to flash HiFive Unleashed. All tests pass.
2018-11-14Merge pull request #165 from riscv/flashTim Newsome2-0/+59
Tweak debug tests to run out of flash.
2018-11-14Cleanup and renamed test flag to invalid_memory_returns_zerocgsfv2-2/+2
2018-11-13Added MemTestBlockReadInvalid verifying the corresponding OpenOCD fixcgsfv2-2/+4
2018-10-31Add HiFive1-flash target configuration.Tim Newsome2-0/+59
2018-09-13Assert if HiFive1 program is too large.Tim Newsome1-0/+2
2018-04-19Delete E300Sim.pydebug-delete-simMegan Wachs1-17/+0
This file is wrong (the .cfg file isn't right) and not used by anything.
2018-04-02Use `gdb_report_register_access_error enable`Tim Newsome1-0/+3
2018-03-01Ensure an error when reading a non-existent CSR.Tim Newsome1-0/+4
2018-02-07Link scripts shouldn't be executable.Tim Newsome1-0/+0
2017-08-28Make pylint happy.Tim Newsome1-1/+1
2017-08-28WIP multicore testing.Tim Newsome2-0/+4
2017-08-28Make the debug tests aware of multicore.Tim Newsome5-13/+28
Targets now contain an array of harts. When running a regular test, one hart is selected to run the test on while the remaining harts are parked in a safe infinite loop. There's currently only one test that tests multicore behavior, but there could be more. The infrastructure should be able to support heterogeneous multicore, but I don't have a target like that to test with.
2017-08-10Give these sim targets a chance of passing.Tim Newsome2-3/+7
Also make sure vsim.log makes it into the generated log file.
2017-06-26Move target definition into individual files.Tim Newsome9-0/+158
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.