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:
@@ -181,12 +181,6 @@ SrcClockDomain::startup()
|
||||
signalPerfLevelUpdate();
|
||||
}
|
||||
|
||||
SrcClockDomain *
|
||||
SrcClockDomainParams::create() const
|
||||
{
|
||||
return new SrcClockDomain(*this);
|
||||
}
|
||||
|
||||
DerivedClockDomain::DerivedClockDomain(const Params &p) :
|
||||
ClockDomain(p, p.clk_domain->voltageDomain()),
|
||||
parent(*p.clk_domain),
|
||||
@@ -227,9 +221,3 @@ DerivedClockDomain::updateClockPeriod()
|
||||
(*c)->updateClockPeriod();
|
||||
}
|
||||
}
|
||||
|
||||
DerivedClockDomain *
|
||||
DerivedClockDomainParams::create() const
|
||||
{
|
||||
return new DerivedClockDomain(*this);
|
||||
}
|
||||
|
||||
@@ -251,9 +251,3 @@ DVFSHandler::unserialize(CheckpointIn &cp)
|
||||
}
|
||||
UpdateEvent::dvfsHandler = this;
|
||||
}
|
||||
|
||||
DVFSHandler*
|
||||
DVFSHandlerParams::create() const
|
||||
{
|
||||
return new DVFSHandler(*this);
|
||||
}
|
||||
|
||||
@@ -135,9 +135,3 @@ KernelWorkload::unserialize(CheckpointIn &cp)
|
||||
{
|
||||
kernelSymtab.unserialize("symtab", cp);
|
||||
}
|
||||
|
||||
KernelWorkload *
|
||||
KernelWorkloadParams::create() const
|
||||
{
|
||||
return new KernelWorkload(*this);
|
||||
}
|
||||
|
||||
@@ -113,9 +113,3 @@ MathExprPowerModel::regStats()
|
||||
{
|
||||
PowerModelState::regStats();
|
||||
}
|
||||
|
||||
MathExprPowerModel*
|
||||
MathExprPowerModelParams::create() const
|
||||
{
|
||||
return new MathExprPowerModel(*this);
|
||||
}
|
||||
|
||||
@@ -87,12 +87,6 @@ PowerModel::regProbePoints()
|
||||
));
|
||||
}
|
||||
|
||||
PowerModel*
|
||||
PowerModelParams::create() const
|
||||
{
|
||||
return new PowerModel(*this);
|
||||
}
|
||||
|
||||
double
|
||||
PowerModel::getDynamicPower() const
|
||||
{
|
||||
|
||||
@@ -88,12 +88,6 @@ ThermalDomain::emitUpdate()
|
||||
ppThermalUpdate->notify(node->temp);
|
||||
}
|
||||
|
||||
ThermalDomain *
|
||||
ThermalDomainParams::create() const
|
||||
{
|
||||
return new ThermalDomain(*this);
|
||||
}
|
||||
|
||||
void
|
||||
ThermalDomain::serialize(CheckpointOut &cp) const
|
||||
{
|
||||
|
||||
@@ -54,12 +54,6 @@ ThermalReference::ThermalReference(const Params &p)
|
||||
{
|
||||
}
|
||||
|
||||
ThermalReference *
|
||||
ThermalReferenceParams::create() const
|
||||
{
|
||||
return new ThermalReference(*this);
|
||||
}
|
||||
|
||||
void
|
||||
ThermalReference::serialize(CheckpointOut &cp) const
|
||||
{
|
||||
@@ -87,12 +81,6 @@ ThermalResistor::ThermalResistor(const Params &p)
|
||||
{
|
||||
}
|
||||
|
||||
ThermalResistor *
|
||||
ThermalResistorParams::create() const
|
||||
{
|
||||
return new ThermalResistor(*this);
|
||||
}
|
||||
|
||||
void
|
||||
ThermalResistor::serialize(CheckpointOut &cp) const
|
||||
{
|
||||
@@ -140,12 +128,6 @@ ThermalCapacitor::ThermalCapacitor(const Params &p)
|
||||
{
|
||||
}
|
||||
|
||||
ThermalCapacitor *
|
||||
ThermalCapacitorParams::create() const
|
||||
{
|
||||
return new ThermalCapacitor(*this);
|
||||
}
|
||||
|
||||
void
|
||||
ThermalCapacitor::serialize(CheckpointOut &cp) const
|
||||
{
|
||||
@@ -196,12 +178,6 @@ ThermalModel::ThermalModel(const Params &p)
|
||||
{
|
||||
}
|
||||
|
||||
ThermalModel *
|
||||
ThermalModelParams::create() const
|
||||
{
|
||||
return new ThermalModel(*this);
|
||||
}
|
||||
|
||||
void
|
||||
ThermalModel::serialize(CheckpointOut &cp) const
|
||||
{
|
||||
|
||||
@@ -47,9 +47,3 @@ ThermalNode::ThermalNode(const ThermalNodeParams &p)
|
||||
: SimObject(p), id(-1), isref(false), temp(0.0f)
|
||||
{
|
||||
}
|
||||
|
||||
ThermalNode *
|
||||
ThermalNodeParams::create() const
|
||||
{
|
||||
return new ThermalNode(*this);
|
||||
}
|
||||
|
||||
@@ -263,9 +263,3 @@ PowerDomain::PowerDomainStats::regStats()
|
||||
.flags(Stats::nozero)
|
||||
;
|
||||
}
|
||||
|
||||
PowerDomain*
|
||||
PowerDomainParams::create() const
|
||||
{
|
||||
return new PowerDomain(*this);
|
||||
}
|
||||
|
||||
@@ -273,9 +273,3 @@ PowerState::PowerStateStats::preDumpStats()
|
||||
*/
|
||||
powerState.computeStats();
|
||||
}
|
||||
|
||||
PowerState*
|
||||
PowerStateParams::create() const
|
||||
{
|
||||
return new PowerState(*this);
|
||||
}
|
||||
|
||||
@@ -74,12 +74,6 @@ ProbeListener::~ProbeListener()
|
||||
manager->removeListener(name, *this);
|
||||
}
|
||||
|
||||
ProbeListenerObject*
|
||||
ProbeListenerObjectParams::create() const
|
||||
{
|
||||
return new ProbeListenerObject(*this);
|
||||
}
|
||||
|
||||
bool
|
||||
ProbeManager::addListener(std::string pointName, ProbeListener &listener)
|
||||
{
|
||||
|
||||
@@ -53,9 +53,3 @@ RedirectPath::RedirectPath(const RedirectPathParams &p)
|
||||
_hostPaths.push_back(normalizePath(hp));
|
||||
}
|
||||
}
|
||||
|
||||
RedirectPath*
|
||||
RedirectPathParams::create() const
|
||||
{
|
||||
return new RedirectPath(*this);
|
||||
}
|
||||
|
||||
@@ -39,9 +39,3 @@ SEWorkload::syscall(ThreadContext *tc)
|
||||
{
|
||||
tc->getProcessPtr()->syscall(tc);
|
||||
}
|
||||
|
||||
SEWorkload *
|
||||
SEWorkloadParams::create() const
|
||||
{
|
||||
return new SEWorkload(*this);
|
||||
}
|
||||
|
||||
@@ -66,9 +66,3 @@ SubSystem::getStaticPower() const
|
||||
ret += obj->getStaticPower();
|
||||
return ret;
|
||||
}
|
||||
|
||||
SubSystem *
|
||||
SubSystemParams::create() const
|
||||
{
|
||||
return new SubSystem(*this);
|
||||
}
|
||||
|
||||
@@ -651,9 +651,3 @@ System::getRequestorName(RequestorID requestor_id)
|
||||
const auto& requestor_info = requestors[requestor_id];
|
||||
return requestor_info.req_name;
|
||||
}
|
||||
|
||||
System *
|
||||
SystemParams::create() const
|
||||
{
|
||||
return new System(*this);
|
||||
}
|
||||
|
||||
@@ -124,12 +124,6 @@ VoltageDomain::startup() {
|
||||
}
|
||||
}
|
||||
|
||||
VoltageDomain *
|
||||
VoltageDomainParams::create() const
|
||||
{
|
||||
return new VoltageDomain(*this);
|
||||
}
|
||||
|
||||
void
|
||||
VoltageDomain::serialize(CheckpointOut &cp) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user