aboutsummaryrefslogtreecommitdiff
path: root/debug/openocd.py
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-12-27 11:34:50 -0800
committerTim Newsome <tim@sifive.com>2016-12-27 11:34:50 -0800
commit4ec77dde62f8c14df9403abf7b10a2455ea72125 (patch)
treece54ad127f65f392c149d66d1caf84c677d8daec /debug/openocd.py
parentb986817eebe9bd810be371dc84ee94e8f654de42 (diff)
downloadriscv-tests-4ec77dde62f8c14df9403abf7b10a2455ea72125.zip
riscv-tests-4ec77dde62f8c14df9403abf7b10a2455ea72125.tar.gz
riscv-tests-4ec77dde62f8c14df9403abf7b10a2455ea72125.tar.bz2
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.
Diffstat (limited to 'debug/openocd.py')
-rwxr-xr-xdebug/openocd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/openocd.py b/debug/openocd.py
index 0ab8810..50c6f3c 100755
--- a/debug/openocd.py
+++ b/debug/openocd.py
@@ -79,7 +79,7 @@ def main():
module = sys.modules[__name__]
- return testlib.run_all_tests(module, target, parsed.test, parsed.fail_fast)
+ return testlib.run_all_tests(module, target, parsed)
if __name__ == '__main__':
sys.exit(main())