projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94d17a5
)
mem: Add PortID to QueuedMasterPort constructor
author
Sascha Bischoff
<sascha.bischoff@arm.com>
Thu, 17 Oct 2013 15:20:45 +0000
(10:20 -0500)
committer
Sascha Bischoff
<sascha.bischoff@arm.com>
Thu, 17 Oct 2013 15:20:45 +0000
(10:20 -0500)
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.
src/mem/qport.hh
patch
|
blob
|
history
diff --git
a/src/mem/qport.hh
b/src/mem/qport.hh
index dd5caa084d07fb6343a09e566d8c6347aa665bda..1453418b87a4dee82dfa4b85231bc199973a29fd 100644
(file)
--- 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() { }