diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2006-09-05 12:22:47 -0700 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2006-09-05 12:22:47 -0700 |
commit | 89f0bc9e4c6e1c0bc58f5f5a88cdac5889758b1f (patch) | |
tree | 06ccb881bd43a914743db69228cdba079c0fa088 /src/python/m5/params.py | |
parent | c39aea440c884f0abb29ecc2293fd6df608bc00c (diff) | |
download | gem5-89f0bc9e4c6e1c0bc58f5f5a88cdac5889758b1f.tar.xz |
Print ports in config.ini as well.
--HG--
extra : convert_revision : 703d3a57250613315735709de8f40a9956cee6e2
Diffstat (limited to 'src/python/m5/params.py')
-rw-r--r-- | src/python/m5/params.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py index db11b9cff..3323766bd 100644 --- a/src/python/m5/params.py +++ b/src/python/m5/params.py @@ -761,6 +761,12 @@ class PortRef(object): self.peer = None # not associated with another port yet self.ccConnected = False # C++ port connection done? + def __str__(self): + ext = '' + if self.isVec: + ext = '[%d]' % self.index + return '%s.%s%s' % (self.simobj.path(), self.name, ext) + # Set peer port reference. Called via __setattr__ as a result of # a port assignment, e.g., "obj1.port1 = obj2.port2". def setPeer(self, other): |