GPUCoalescer.cc (13399:98f54e365584) GPUCoalescer.cc (13974:af47a3ae0f6b)
1/*
2 * Copyright (c) 2013-2015 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * For use for simulation and test purposes only
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:

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

138 m_max_outstanding_requests = p->max_outstanding_requests;
139 m_deadlock_threshold = p->deadlock_threshold;
140
141 assert(m_max_outstanding_requests > 0);
142 assert(m_deadlock_threshold > 0);
143 assert(m_instCache_ptr);
144 assert(m_dataCache_ptr);
145
1/*
2 * Copyright (c) 2013-2015 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * For use for simulation and test purposes only
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:

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

138 m_max_outstanding_requests = p->max_outstanding_requests;
139 m_deadlock_threshold = p->deadlock_threshold;
140
141 assert(m_max_outstanding_requests > 0);
142 assert(m_deadlock_threshold > 0);
143 assert(m_instCache_ptr);
144 assert(m_dataCache_ptr);
145
146 m_data_cache_hit_latency = p->dcache_hit_latency;
147
148 m_runningGarnetStandalone = p->garnet_standalone;
149 assumingRfOCoherence = p->assume_rfo;
150}
151
152GPUCoalescer::~GPUCoalescer()
153{
154}
155

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

945 DPRINTFR(ProtocolTrace, "%15s %3s %10s%20s %6s>%-6s %s %s\n",
946 curTick(), m_version, "Coal", "Begin", "", "",
947 printAddress(msg->getPhysicalAddress()),
948 RubyRequestType_to_string(secondary_type));
949
950 fatal_if(secondary_type == RubyRequestType_IFETCH,
951 "there should not be any I-Fetch requests in the GPU Coalescer");
952
146 m_runningGarnetStandalone = p->garnet_standalone;
147 assumingRfOCoherence = p->assume_rfo;
148}
149
150GPUCoalescer::~GPUCoalescer()
151{
152}
153

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

943 DPRINTFR(ProtocolTrace, "%15s %3s %10s%20s %6s>%-6s %s %s\n",
944 curTick(), m_version, "Coal", "Begin", "", "",
945 printAddress(msg->getPhysicalAddress()),
946 RubyRequestType_to_string(secondary_type));
947
948 fatal_if(secondary_type == RubyRequestType_IFETCH,
949 "there should not be any I-Fetch requests in the GPU Coalescer");
950
953 // Send the message to the cache controller
954 fatal_if(m_data_cache_hit_latency == 0,
955 "should not have a latency of zero");
951 Tick latency = cyclesToTicks(
952 m_controller->mandatoryQueueLatency(secondary_type));
953 assert(latency > 0);
956
957 assert(m_mandatory_q_ptr);
954
955 assert(m_mandatory_q_ptr);
958 m_mandatory_q_ptr->enqueue(msg, clockEdge(), m_data_cache_hit_latency);
956 m_mandatory_q_ptr->enqueue(msg, clockEdge(), latency);
959}
960
961template <class KEY, class VALUE>
962std::ostream &
963operator<<(ostream &out, const std::unordered_map<KEY, VALUE> &map)
964{
965 out << "[";
966 for (auto i = map.begin(); i != map.end(); ++i)

--- 411 unchanged lines hidden ---
957}
958
959template <class KEY, class VALUE>
960std::ostream &
961operator<<(ostream &out, const std::unordered_map<KEY, VALUE> &map)
962{
963 out << "[";
964 for (auto i = map.begin(); i != map.end(); ++i)

--- 411 unchanged lines hidden ---