summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Bischoff <sascha.bischoff@arm.com>2013-10-17 10:20:45 -0500
committerSascha Bischoff <sascha.bischoff@arm.com>2013-10-17 10:20:45 -0500
commit52f90890a3f1d3a6485fe3804c1de6af654efbc6 (patch)
tree5f49be7082d9d5c282ddb0b65d21931048c9ac23
parent94d17a547cc11b017f292f6b22cfd5169e1eef86 (diff)
downloadgem5-52f90890a3f1d3a6485fe3804c1de6af654efbc6.tar.xz
mem: Add PortID to QueuedMasterPort constructor
This patch adds the PortID to the QueuedMasterPort. This allows a PortID to be specified as it previously was set to the detault value of -1.
-rw-r--r--src/mem/qport.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/qport.hh b/src/mem/qport.hh
index dd5caa084..1453418b8 100644
--- a/src/mem/qport.hh
+++ b/src/mem/qport.hh
@@ -122,8 +122,8 @@ class QueuedMasterPort : public MasterPort
* QueuePort constructor.
*/
QueuedMasterPort(const std::string& name, MemObject* owner,
- MasterPacketQueue &queue) :
- MasterPort(name, owner), queue(queue)
+ MasterPacketQueue &queue, PortID id = InvalidPortID) :
+ MasterPort(name, owner, id), queue(queue)
{ }
virtual ~QueuedMasterPort() { }