#include "mem/ruby/buffers/MessageBuffer.hh"
#include "mem/ruby/system/System.hh"
-MessageBuffer::MessageBuffer(const Chip* chip_ptr,
- const string &name)
+MessageBuffer::MessageBuffer(const string &name)
{
m_msg_counter = 0;
m_consumer_ptr = NULL;
#include "mem/gems_common/PrioHeap.hh"
#include "mem/gems_common/util.hh"
-class Chip;
-
class MessageBuffer {
public:
// Constructors
- // The chip_ptr is ignored, but could be used for extra debugging
- MessageBuffer(const Chip* chip_ptr = NULL,
- const string &name = "");
+ MessageBuffer(const string &name = "");
// ~MessageBuffer()
m_toNetQueues[node].setSize(m_virtual_networks);
m_fromNetQueues[node].setSize(m_virtual_networks);
for (int j = 0; j < m_virtual_networks; j++) {
- m_toNetQueues[node][j] = new MessageBuffer(NULL,
+ m_toNetQueues[node][j] = new MessageBuffer(
"toNet node "+int_to_string(node)+" j "+int_to_string(j));
- m_fromNetQueues[node][j] = new MessageBuffer(NULL,
+ m_fromNetQueues[node][j] = new MessageBuffer(
"fromNet node "+int_to_string(node)+" j "+int_to_string(j));
}
}