Use compressed code if the target supports it.
authorTim Newsome <tim@sifive.com>
Tue, 27 Dec 2016 19:34:50 +0000 (11:34 -0800)
committerTim Newsome <tim@sifive.com>
Tue, 27 Dec 2016 19:34:50 +0000 (11:34 -0800)
commit4ec77dde62f8c14df9403abf7b10a2455ea72125
treece54ad127f65f392c149d66d1caf84c677d8daec
parentb986817eebe9bd810be371dc84ee94e8f654de42
Use compressed code if the target supports it.

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.
debug/gdbserver.py
debug/openocd.py
debug/programs/step.S
debug/programs/trigger.S
debug/targets.py
debug/testlib.py