#include <numeric>
#include "base/cast.hh"
-#include "base/stl_helpers.hh"
#include "mem/ruby/common/NetDest.hh"
#include "mem/ruby/network/MessageBuffer.hh"
#include "mem/ruby/network/simple/SimpleLink.hh"
#include "mem/ruby/profiler/Profiler.hh"
using namespace std;
-using m5::stl_helpers::deletePointers;
SimpleNetwork::SimpleNetwork(const Params *p)
: Network(p), m_buffer_size(p->buffer_size),
m_topology_ptr->createLinks(this);
}
-SimpleNetwork::~SimpleNetwork()
-{
- deletePointers(m_switches);
- deletePointers(m_int_link_buffers);
-}
-
// From a switch to an endpoint node
void
SimpleNetwork::makeExtOutLink(SwitchID src, NodeID dest, BasicLink* link,