summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-04-15 23:29:57 -0700
committerGabe Black <gabeblack@google.com>2019-04-27 22:32:50 +0000
commit3cfff8574a19536e2b3d057b43b59fcf35932c81 (patch)
treea07b3643ef455aa5614c4a34336f2ef893bbcf59 /src/python
parent6b87ee1e1f481e78170230fa7548f1b177d13e8c (diff)
downloadgem5-3cfff8574a19536e2b3d057b43b59fcf35932c81.tar.xz
python: Get rid of the VectorPort constructor.
The only thing it was doing beyond calling the parent Port __init__ was to set isVec, and nobody actually looks at that value later. Change-Id: I567cb583e6f02a6c18504b9bb20dd13b3c934822 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18175 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/python')
-rw-r--r--src/python/m5/params.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py
index 8b0a14af3..02f5e51b5 100644
--- a/src/python/m5/params.py
+++ b/src/python/m5/params.py
@@ -2115,11 +2115,6 @@ class ResponsePort(Port):
# VectorPort description object. Like Port, but represents a vector
# of connections (e.g., as on a XBar).
class VectorPort(Port):
- # VectorPort("role", "description")
- def __init__(self, role, desc, is_source=False):
- super(VectorPort, self).__init__(role, desc, is_source)
- self.isVec = True
-
def makeRef(self, simobj):
return VectorPortRef(simobj, self.name, self.role, self.is_source)