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

@@ -1118,12 +1118,6 @@ DRAMInterface::minBankPrep(const MemPacketQueue& queue,
return make_pair(bank_mask, hidden_bank_prep);
}
DRAMInterface*
DRAMInterfaceParams::create() const
{
return new DRAMInterface(*this);
}
DRAMInterface::Rank::Rank(const DRAMInterfaceParams &_p,
int _rank, DRAMInterface& _dram)
: EventManager(&_dram), dram(_dram),
@@ -2035,12 +2029,6 @@ NVMInterface::NVMInterface(const NVMInterfaceParams &_p)
}
NVMInterface*
NVMInterfaceParams::create() const
{
return new NVMInterface(*this);
}
NVMInterface::Rank::Rank(const NVMInterfaceParams &_p,
int _rank, NVMInterface& _nvm)
: EventManager(&_nvm), rank(_rank), banks(_p.banks_per_rank)