diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2014-09-01 16:55:42 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2014-09-01 16:55:42 -0500 |
commit | 00dbadcbb09c51b8d05a22c21193b55d7e9a0cf1 (patch) | |
tree | fc8e8e99d2f1e48176e0f00c7cf3c567aa5ddbec /src/mem/ruby/network/Network.hh | |
parent | cc2cc588693bb73b1892aea82fd0ac9729196f25 (diff) | |
download | gem5-00dbadcbb09c51b8d05a22c21193b55d7e9a0cf1.tar.xz |
ruby: network: move getNumNodes() to base class
All the implementations were doing the same things.
Diffstat (limited to 'src/mem/ruby/network/Network.hh')
-rw-r--r-- | src/mem/ruby/network/Network.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mem/ruby/network/Network.hh b/src/mem/ruby/network/Network.hh index 9ddf5c8e6..dcdd791e7 100644 --- a/src/mem/ruby/network/Network.hh +++ b/src/mem/ruby/network/Network.hh @@ -60,13 +60,15 @@ class Network : public ClockedObject public: typedef RubyNetworkParams Params; Network(const Params *p); - virtual ~Network() {} const Params * params() const { return dynamic_cast<const Params *>(_params);} + virtual ~Network(); virtual void init(); static uint32_t getNumberOfVirtualNetworks() { return m_virtual_networks; } + int getNumNodes() const { return m_nodes; } + static uint32_t MessageSizeType_to_int(MessageSizeType size_type); // returns the queue requested for the given component @@ -74,7 +76,7 @@ class Network : public ClockedObject int netNumber, std::string vnet_type) = 0; virtual MessageBuffer* getFromNetQueue(NodeID id, bool ordered, int netNumber, std::string vnet_type) = 0; - virtual int getNumNodes() {return 1;} + virtual void makeOutLink(SwitchID src, NodeID dest, BasicLink* link, LinkDirection direction, |