From: Sascha Bischoff Date: Thu, 17 Oct 2013 15:20:45 +0000 (-0500) Subject: mem: Add PortID to QueuedMasterPort constructor X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52f90890a3f1d3a6485fe3804c1de6af654efbc6;p=gem5.git 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. --- 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() { }