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

@@ -133,9 +133,3 @@ InvalidateGenerator::performCallback(uint32_t proc, Addr address)
}
}
InvalidateGenerator *
InvalidateGeneratorParams::create() const
{
return new InvalidateGenerator(*this);
}

View File

@@ -136,9 +136,3 @@ RubyDirectedTester::wakeup()
exitSimLoop("Ruby DirectedTester completed");
}
}
RubyDirectedTester *
RubyDirectedTesterParams::create() const
{
return new RubyDirectedTester(*this);
}

View File

@@ -108,9 +108,3 @@ SeriesRequestGenerator::performCallback(uint32_t proc, Addr address)
m_active_node = 0;
}
}
SeriesRequestGenerator *
SeriesRequestGeneratorParams::create() const
{
return new SeriesRequestGenerator(*this);
}

View File

@@ -348,10 +348,3 @@ GarnetSyntheticTraffic::printAddr(Addr a)
{
cachePort.printAddr(a);
}
GarnetSyntheticTraffic *
GarnetSyntheticTrafficParams::create() const
{
return new GarnetSyntheticTraffic(*this);
}

View File

@@ -321,9 +321,3 @@ MemTest::recvRetry()
reschedule(noRequestEvent, clockEdge(progressCheck), true);
}
}
MemTest *
MemTestParams::create() const
{
return new MemTest(*this);
}

View File

@@ -278,9 +278,3 @@ RubyTester::print(std::ostream& out) const
{
out << "[RubyTester]" << std::endl;
}
RubyTester *
RubyTesterParams::create() const
{
return new RubyTester(*this);
}

View File

@@ -90,9 +90,3 @@ pybind_init_tracers(py::module &m_native)
static EmbeddedPyBind _py_tracers("trace", pybind_init_tracers);
PyTrafficGen*
PyTrafficGenParams::create() const
{
return new PyTrafficGen(*this);
}

View File

@@ -58,12 +58,6 @@ TrafficGen::TrafficGen(const TrafficGenParams &p)
{
}
TrafficGen*
TrafficGenParams::create() const
{
return new TrafficGen(*this);
}
void
TrafficGen::init()
{