}
m_msgs_this_cycle++;
- // assert(m_max_size == -1 || m_size <= m_max_size + 1);
- // the plus one is a kluge because of a SLICC issue
-
if (!m_ordering_set) {
panic("Ordering property of %s has not been set", m_name);
}
// Calculate the arrival time of the message, that is, the first
// cycle the message can be dequeued.
- //printf ("delta %i \n", delta);
assert(delta>0);
Time current_time = g_eventQueue_ptr->getTime();
Time arrival_time = 0;
typedef long long int64;
typedef long long integer_t;
-typedef unsigned long long uinteger_t;
typedef int64 Time;
typedef uint64 physical_address_t;
-typedef uint64 la_t;
-typedef uint64 pa_t;
-typedef integer_t simtime_t;
#endif
#include <numeric>
#include "base/stl_helpers.hh"
-#include "mem/protocol/MachineType.hh"
#include "mem/protocol/TopologyType.hh"
#include "mem/ruby/buffers/MessageBuffer.hh"
#include "mem/ruby/common/NetDest.hh"
using namespace std;
using m5::stl_helpers::deletePointers;
-#if 0
-// ***BIG HACK*** - This is actually code that _should_ be in Network.cc
-
-// Note: Moved to Princeton Network
-// calls new to abstract away from the network
-Network*
-Network::createNetwork(int nodes)
-{
- return new SimpleNetwork(nodes);
-}
-#endif
-
SimpleNetwork::SimpleNetwork(const Params *p)
: Network(p)
{
#include "base/hashmap.hh"
#include "mem/protocol/AccessPermission.hh"
#include "mem/protocol/GenericRequestType.hh"
-#include "mem/protocol/MachineType.hh"
#include "mem/protocol/RubyRequest.hh"
#include "mem/protocol/RubyRequestType.hh"
#include "mem/ruby/common/Address.hh"
success ? "Done" : "SC_Failed", "", "",
ruby_request.m_PhysicalAddress, miss_latency);
}
-#if 0
- if (request.getPrefetch() == PrefetchBit_Yes) {
- return; // Ignore the prefetch
- }
-#endif
// update the data
if (ruby_request.data != NULL) {
m_mandatory_q_ptr->enqueue(msg, latency);
}
-#if 0
-bool
-Sequencer::tryCacheAccess(const Address& addr, RubyRequestType type,
- RubyAccessMode access_mode,
- int size, DataBlock*& data_ptr)
-{
- CacheMemory *cache =
- (type == RubyRequestType_IFETCH) ? m_instCache_ptr : m_dataCache_ptr;
-
- return cache->tryCacheAccess(line_address(addr), type, data_ptr);
-}
-#endif
-
template <class KEY, class VALUE>
std::ostream &
operator<<(ostream &out, const m5::hash_map<KEY, VALUE> &map)
void removeRequest(SequencerRequest* request);
private:
- bool tryCacheAccess(const Address& addr, RubyRequestType type,
- const Address& pc, RubyAccessMode access_mode,
- int size, DataBlock*& data_ptr);
void issueRequest(const RubyRequest& request);
void hitCallback(SequencerRequest* request,