#include "mem/ruby/system/RubySystem.hh"
#include "sim/sim_exit.hh"
-Shader::Shader(const Params *p) : SimObject(p),
+Shader::Shader(const Params *p) : ClockedObject(p),
clock(p->clk_domain->clockPeriod()), cpuThread(nullptr), gpuTc(nullptr),
cpuPointer(p->cpu_pointer), tickEvent(this), timingSim(p->timing),
hsail_mode(SIMT), impl_kern_boundary_sync(p->impl_kern_boundary_sync),
// Class Shader: This describes a single shader instance. Most
// configurations will only have a single shader.
-class Shader : public SimObject
+class Shader : public ClockedObject
{
protected:
// Shader's clock period in terms of number of ticks of curTime,
#include "mem/request.hh"
#include "mem/ruby/common/Address.hh"
#include "mem/ruby/common/Consumer.hh"
-#include "mem/ruby/system/RubyPort.hh"
+#include "mem/ruby/system/Sequencer.hh"
class DataBlock;
class CacheMsg;
bool handleLlsc(Addr address, GPUCoalescerRequest* request);
- // Private copy constructor and assignment operator
- GPUCoalescer(const GPUCoalescer& obj);
- GPUCoalescer& operator=(const GPUCoalescer& obj);
-
class IssueEvent : public Event
{
private:
std::vector<Stats::Histogram *> m_InitialToForwardDelayHist;
std::vector<Stats::Histogram *> m_ForwardToFirstResponseDelayHist;
std::vector<Stats::Histogram *> m_FirstResponseToCompletionDelayHist;
+
+private:
+ // Private copy constructor and assignment operator
+ GPUCoalescer(const GPUCoalescer& obj);
+ GPUCoalescer& operator=(const GPUCoalescer& obj);
};
inline std::ostream&
from m5.proxy import *
from Sequencer import *
-class RubyGPUCoalescer(RubySequencer):
+class RubyGPUCoalescer(RubyPort):
type = 'RubyGPUCoalescer'
cxx_class = 'GPUCoalescer'
cxx_header = "mem/ruby/system/GPUCoalescer.hh"
"max requests (incl. prefetches) outstanding")
assume_rfo = Param.Bool(True, "assume protocol implementes Read for "
"Ownership coherence");
+
+ icache = Param.RubyCache("")
+ dcache = Param.RubyCache("")
+ deadlock_threshold = Param.Cycles(500000,
+ "max outstanding cycles for a request before " \
+ "deadlock/livelock declared")
+ garnet_standalone = Param.Bool(False, "")
+ dcache_hit_latency = Param.Cycles(1, "Data cache hit latency")