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:
Gabe Black
2020-10-23 19:34:07 -07:00
parent 6c454ee53b
commit d05a0a4ea1
337 changed files with 56 additions and 2960 deletions

View File

@@ -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)
{

View File

@@ -360,9 +360,3 @@ GPUDispatcher::scheduleDispatch()
schedule(&tickEvent, curTick() + shader->clockPeriod());
}
}
GPUDispatcher *
GPUDispatcherParams::create() const
{
return new GPUDispatcher(*this);
}

View File

@@ -221,9 +221,3 @@ GPUCommandProcessor::shader()
{
return _shader;
}
GPUCommandProcessor*
GPUCommandProcessorParams::create() const
{
return new GPUCommandProcessor(*this);
}

View File

@@ -410,9 +410,3 @@ GPUComputeDriver::ldsApeLimit(Addr apeBase) const
{
return (apeBase & 0xFFFFFFFF00000000UL) | 0xFFFFFFFF;
}
GPUComputeDriver*
GPUComputeDriverParams::create() const
{
return new GPUComputeDriver(*this);
}

View File

@@ -1514,10 +1514,3 @@ namespace X86ISA
TLBFootprint.clear();
}
} // namespace X86ISA
X86ISA::GpuTLB*
X86GPUTLBParams::create() const
{
return new X86ISA::GpuTLB(*this);
}

View File

@@ -63,15 +63,6 @@ LdsState::LdsState(const Params &params) :
"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
*/

View File

@@ -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

View File

@@ -135,9 +135,3 @@ RegisterManager::regStats()
{
policy->regStats();
}
RegisterManager*
RegisterManagerParams::create() const
{
return new RegisterManager(*this);
}

View File

@@ -156,9 +156,3 @@ ScalarRegisterFile::scheduleWriteOperandsFromLoad(Wavefront *w,
}
}
}
ScalarRegisterFile*
ScalarRegisterFileParams::create() const
{
return new ScalarRegisterFile(*this);
}

View File

@@ -154,12 +154,6 @@ Shader::updateContext(int cid) {
assert(gpuTc);
}
Shader*
ShaderParams::create() const
{
return new Shader(*this);
}
void
Shader::execScheduledAdds()
{

View File

@@ -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

View File

@@ -552,11 +552,3 @@ TLBCoalescer::regStats()
localLatency = localqueuingCycles / uncoalescedAccesses;
}
TLBCoalescer*
TLBCoalescerParams::create() const
{
return new TLBCoalescer(*this);
}

View File

@@ -207,9 +207,3 @@ VectorRegisterFile::scheduleWriteOperandsFromLoad(
mask = mask >> 4;
}
}
VectorRegisterFile*
VectorRegisterFileParams::create() const
{
return new VectorRegisterFile(*this);
}

View File

@@ -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),