aboutsummaryrefslogtreecommitdiff
path: root/debug/targets.py
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-07-20 20:43:18 -0700
committerTim Newsome <tim@sifive.com>2017-07-20 20:43:18 -0700
commite9de1c77dda6c191cf871d1ad2b43448e83077b7 (patch)
treeb4d9817c7d539a69d1ac765eb6781a42f25d713e /debug/targets.py
parent8ec0e8c02d1b1db0112c8564888f2d8dd88cbe15 (diff)
downloadriscv-tests-e9de1c77dda6c191cf871d1ad2b43448e83077b7.zip
riscv-tests-e9de1c77dda6c191cf871d1ad2b43448e83077b7.tar.gz
riscv-tests-e9de1c77dda6c191cf871d1ad2b43448e83077b7.tar.bz2
Add back code to clean up triggers in entry.S
Then for targets that can't handle this because they don't implement hmode, add a target setting that allows that to be specified.
Diffstat (limited to 'debug/targets.py')
-rw-r--r--debug/targets.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/debug/targets.py b/debug/targets.py
index ae81517..296b0a9 100644
--- a/debug/targets.py
+++ b/debug/targets.py
@@ -34,6 +34,12 @@ class Target(object):
# before starting the test.
gdb_setup = []
+ # Implements dmode in tdata1 as described in the spec. Targets that need
+ # this value set to False are not compliant with the spec (but still usable
+ # as long as running code doesn't try to mess with triggers set by an
+ # external debugger).
+ honors_tdata1_hmode = True
+
# Internal variables:
directory = None
temporary_files = []