aboutsummaryrefslogtreecommitdiff
path: root/debug/targets.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug/targets.py')
-rw-r--r--debug/targets.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/debug/targets.py b/debug/targets.py
index 0890465..be45c62 100644
--- a/debug/targets.py
+++ b/debug/targets.py
@@ -44,6 +44,13 @@ class Hart:
# jumpers.
reset_vectors = []
+ def __init__(self, system=None):
+ """system is set to an identifier of the system this hart belongs to.
+ Harts within the same system are assumed to share memory, and to have
+ unique hartids within that system. So for most cases the default
+ value of None is fine."""
+ self.system = system
+
def extensionSupported(self, letter):
# target.misa is set by testlib.ExamineTarget
if self.misa: