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:
@@ -94,9 +94,3 @@ GoodbyeObject::fillBuffer()
|
||||
exitSimLoop(buffer, 0, curTick() + bandwidth * bytes_copied);
|
||||
}
|
||||
}
|
||||
|
||||
GoodbyeObject*
|
||||
GoodbyeObjectParams::create() const
|
||||
{
|
||||
return new GoodbyeObject(*this);
|
||||
}
|
||||
|
||||
@@ -68,9 +68,3 @@ HelloObject::processEvent()
|
||||
schedule(event, curTick() + latency);
|
||||
}
|
||||
}
|
||||
|
||||
HelloObject*
|
||||
HelloObjectParams::create() const
|
||||
{
|
||||
return new HelloObject(*this);
|
||||
}
|
||||
|
||||
@@ -431,10 +431,3 @@ SimpleCache::SimpleCacheStats::SimpleCacheStats(Stats::Group *parent)
|
||||
{
|
||||
missLatency.init(16); // number of buckets
|
||||
}
|
||||
|
||||
|
||||
SimpleCache*
|
||||
SimpleCacheParams::create() const
|
||||
{
|
||||
return new SimpleCache(*this);
|
||||
}
|
||||
|
||||
@@ -228,11 +228,3 @@ SimpleMemobj::sendRangeChange()
|
||||
instPort.sendRangeChange();
|
||||
dataPort.sendRangeChange();
|
||||
}
|
||||
|
||||
|
||||
|
||||
SimpleMemobj*
|
||||
SimpleMemobjParams::create() const
|
||||
{
|
||||
return new SimpleMemobj(*this);
|
||||
}
|
||||
|
||||
@@ -35,9 +35,3 @@ SimpleObject::SimpleObject(const SimpleObjectParams ¶ms) :
|
||||
{
|
||||
std::cout << "Hello World! From a SimObject!" << std::endl;
|
||||
}
|
||||
|
||||
SimpleObject*
|
||||
SimpleObjectParams::create() const
|
||||
{
|
||||
return new SimpleObject(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user