misc: Delete the now unnecessary create methods.
Most create() methods are no longer necessary. This change deletes them, and occasionally moves some code from them into the constructors they call. Change-Id: Icbab29ba280144b892f9b12fac9e29a0839477e5 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36536 Reviewed-by: Gabe Black <gabe.black@gmail.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -1355,12 +1355,6 @@ ComputeUnit::DataPort::processMemRespEvent(PacketPtr pkt)
|
||||
delete pkt;
|
||||
}
|
||||
|
||||
ComputeUnit*
|
||||
ComputeUnitParams::create() const
|
||||
{
|
||||
return new ComputeUnit(*this);
|
||||
}
|
||||
|
||||
bool
|
||||
ComputeUnit::DTLBPort::recvTimingResp(PacketPtr pkt)
|
||||
{
|
||||
|
||||
@@ -360,9 +360,3 @@ GPUDispatcher::scheduleDispatch()
|
||||
schedule(&tickEvent, curTick() + shader->clockPeriod());
|
||||
}
|
||||
}
|
||||
|
||||
GPUDispatcher *
|
||||
GPUDispatcherParams::create() const
|
||||
{
|
||||
return new GPUDispatcher(*this);
|
||||
}
|
||||
|
||||
@@ -221,9 +221,3 @@ GPUCommandProcessor::shader()
|
||||
{
|
||||
return _shader;
|
||||
}
|
||||
|
||||
GPUCommandProcessor*
|
||||
GPUCommandProcessorParams::create() const
|
||||
{
|
||||
return new GPUCommandProcessor(*this);
|
||||
}
|
||||
|
||||
@@ -410,9 +410,3 @@ GPUComputeDriver::ldsApeLimit(Addr apeBase) const
|
||||
{
|
||||
return (apeBase & 0xFFFFFFFF00000000UL) | 0xFFFFFFFF;
|
||||
}
|
||||
|
||||
GPUComputeDriver*
|
||||
GPUComputeDriverParams::create() const
|
||||
{
|
||||
return new GPUComputeDriver(*this);
|
||||
}
|
||||
|
||||
@@ -1514,10 +1514,3 @@ namespace X86ISA
|
||||
TLBFootprint.clear();
|
||||
}
|
||||
} // namespace X86ISA
|
||||
|
||||
X86ISA::GpuTLB*
|
||||
X86GPUTLBParams::create() const
|
||||
{
|
||||
return new X86ISA::GpuTLB(*this);
|
||||
}
|
||||
|
||||
|
||||
@@ -63,15 +63,6 @@ LdsState::LdsState(const Params ¶ms) :
|
||||
"the LDS should be an even number");
|
||||
}
|
||||
|
||||
/**
|
||||
* Needed by the SWIG compiler
|
||||
*/
|
||||
LdsState *
|
||||
LdsStateParams::create() const
|
||||
{
|
||||
return new LdsState(*this);
|
||||
}
|
||||
|
||||
/**
|
||||
* set the parent and name based on the parent
|
||||
*/
|
||||
|
||||
@@ -171,12 +171,6 @@ RegisterFile::waveExecuteInst(Wavefront *w, GPUDynInstPtr ii)
|
||||
{
|
||||
}
|
||||
|
||||
RegisterFile*
|
||||
RegisterFileParams::create() const
|
||||
{
|
||||
return new RegisterFile(*this);
|
||||
}
|
||||
|
||||
// Events
|
||||
|
||||
// Mark a register as free in the scoreboard/busy vector
|
||||
|
||||
@@ -135,9 +135,3 @@ RegisterManager::regStats()
|
||||
{
|
||||
policy->regStats();
|
||||
}
|
||||
|
||||
RegisterManager*
|
||||
RegisterManagerParams::create() const
|
||||
{
|
||||
return new RegisterManager(*this);
|
||||
}
|
||||
|
||||
@@ -156,9 +156,3 @@ ScalarRegisterFile::scheduleWriteOperandsFromLoad(Wavefront *w,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ScalarRegisterFile*
|
||||
ScalarRegisterFileParams::create() const
|
||||
{
|
||||
return new ScalarRegisterFile(*this);
|
||||
}
|
||||
|
||||
@@ -154,12 +154,6 @@ Shader::updateContext(int cid) {
|
||||
assert(gpuTc);
|
||||
}
|
||||
|
||||
Shader*
|
||||
ShaderParams::create() const
|
||||
{
|
||||
return new Shader(*this);
|
||||
}
|
||||
|
||||
void
|
||||
Shader::execScheduledAdds()
|
||||
{
|
||||
|
||||
@@ -35,12 +35,6 @@
|
||||
|
||||
#include "base/logging.hh"
|
||||
|
||||
SimplePoolManager *
|
||||
SimplePoolManagerParams::create() const
|
||||
{
|
||||
return new SimplePoolManager(*this);
|
||||
}
|
||||
|
||||
// return the min number of elements that the manager can reserve given
|
||||
// a request for "size" elements
|
||||
uint32_t
|
||||
|
||||
@@ -552,11 +552,3 @@ TLBCoalescer::regStats()
|
||||
|
||||
localLatency = localqueuingCycles / uncoalescedAccesses;
|
||||
}
|
||||
|
||||
|
||||
TLBCoalescer*
|
||||
TLBCoalescerParams::create() const
|
||||
{
|
||||
return new TLBCoalescer(*this);
|
||||
}
|
||||
|
||||
|
||||
@@ -207,9 +207,3 @@ VectorRegisterFile::scheduleWriteOperandsFromLoad(
|
||||
mask = mask >> 4;
|
||||
}
|
||||
}
|
||||
|
||||
VectorRegisterFile*
|
||||
VectorRegisterFileParams::create() const
|
||||
{
|
||||
return new VectorRegisterFile(*this);
|
||||
}
|
||||
|
||||
@@ -44,12 +44,6 @@
|
||||
#include "gpu-compute/simple_pool_manager.hh"
|
||||
#include "gpu-compute/vector_register_file.hh"
|
||||
|
||||
Wavefront*
|
||||
WavefrontParams::create() const
|
||||
{
|
||||
return new Wavefront(*this);
|
||||
}
|
||||
|
||||
Wavefront::Wavefront(const Params &p)
|
||||
: SimObject(p), wfSlotId(p.wf_slot_id), simdId(p.simdId),
|
||||
maxIbSize(p.max_ib_size), _gpuISA(*this),
|
||||
|
||||
Reference in New Issue
Block a user