AbstractController.cc (10012:ec5a5bfb941d) AbstractController.cc (10311:ad9c042dce54)
1/*
2 * Copyright (c) 2011 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 75 unchanged lines hidden (view full) ---

84AbstractController::profileMsgDelay(uint32_t virtualNetwork, Cycles delay)
85{
86 assert(virtualNetwork < m_delayVCHistogram.size());
87 m_delayHistogram.sample(delay);
88 m_delayVCHistogram[virtualNetwork]->sample(delay);
89}
90
91void
1/*
2 * Copyright (c) 2011 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 75 unchanged lines hidden (view full) ---

84AbstractController::profileMsgDelay(uint32_t virtualNetwork, Cycles delay)
85{
86 assert(virtualNetwork < m_delayVCHistogram.size());
87 m_delayHistogram.sample(delay);
88 m_delayVCHistogram[virtualNetwork]->sample(delay);
89}
90
91void
92AbstractController::connectWithPeer(AbstractController *c)
93{
94 getQueuesFromPeer(c);
95 c->getQueuesFromPeer(this);
96}
97
98void
99AbstractController::stallBuffer(MessageBuffer* buf, Address addr)
100{
101 if (m_waiting_buffers.count(addr) == 0) {
102 MsgVecType* msgVec = new MsgVecType;
103 msgVec->resize(m_in_ports, NULL);
104 m_waiting_buffers[addr] = msgVec;
105 }
106 (*(m_waiting_buffers[addr]))[m_cur_in_port] = buf;

--- 90 unchanged lines hidden ---
92AbstractController::stallBuffer(MessageBuffer* buf, Address addr)
93{
94 if (m_waiting_buffers.count(addr) == 0) {
95 MsgVecType* msgVec = new MsgVecType;
96 msgVec->resize(m_in_ports, NULL);
97 m_waiting_buffers[addr] = msgVec;
98 }
99 (*(m_waiting_buffers[addr]))[m_cur_in_port] = buf;

--- 90 unchanged lines hidden ---