Move target definition into individual files.
authorTim Newsome <tim@sifive.com>
Mon, 26 Jun 2017 17:00:34 +0000 (10:00 -0700)
committerTim Newsome <tim@sifive.com>
Mon, 26 Jun 2017 17:06:10 +0000 (10:06 -0700)
commit272e12eb177c662826f901d536f685a4abf62123
tree1a92b0969a5ed9ac60d62926d7c94222bdde069a
parent806deb8e53e029df31defc88d09c6c2c2b08e8f3
Move target definition into individual files.

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.
34 files changed:
debug/Makefile
debug/README.md
debug/gdbserver.py
debug/targets.py
debug/targets/HiFive1/link.lds [deleted file]
debug/targets/HiFive1/openocd.cfg [deleted file]
debug/targets/RISC-V/spike32.cfg [new file with mode: 0644]
debug/targets/RISC-V/spike32.lds [new file with mode: 0755]
debug/targets/RISC-V/spike32.py [new file with mode: 0644]
debug/targets/RISC-V/spike64.cfg [new file with mode: 0644]
debug/targets/RISC-V/spike64.lds [new file with mode: 0755]
debug/targets/RISC-V/spike64.py [new file with mode: 0644]
debug/targets/SiFive/Freedom/E300.py [new file with mode: 0644]
debug/targets/SiFive/Freedom/E300Sim.py [new file with mode: 0644]
debug/targets/SiFive/Freedom/Freedom.cfg [new file with mode: 0644]
debug/targets/SiFive/Freedom/Freedom.lds [new file with mode: 0644]
debug/targets/SiFive/Freedom/U500.py [new file with mode: 0644]
debug/targets/SiFive/Freedom/U500Sim.py [new file with mode: 0644]
debug/targets/SiFive/HiFive1.cfg [new file with mode: 0644]
debug/targets/SiFive/HiFive1.lds [new file with mode: 0755]
debug/targets/SiFive/HiFive1.py [new file with mode: 0644]
debug/targets/freedom-e300-sim/link.lds [deleted file]
debug/targets/freedom-e300-sim/openocd.cfg [deleted file]
debug/targets/freedom-e300/link.lds [deleted file]
debug/targets/freedom-e300/openocd.cfg [deleted file]
debug/targets/freedom-u500-sim/link.lds [deleted file]
debug/targets/freedom-u500-sim/openocd.cfg [deleted file]
debug/targets/freedom-u500/link.lds [deleted file]
debug/targets/freedom-u500/openocd.cfg [deleted file]
debug/targets/spike32/link.lds [deleted file]
debug/targets/spike32/openocd.cfg [deleted file]
debug/targets/spike64/link.lds [deleted file]
debug/targets/spike64/openocd.cfg [deleted file]
debug/testlib.py