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:
@@ -484,9 +484,3 @@ VirtIODummyDevice::VirtIODummyDevice(const VirtIODummyDeviceParams ¶ms)
|
||||
: VirtIODeviceBase(params, ID_INVALID, 0, 0)
|
||||
{
|
||||
}
|
||||
|
||||
VirtIODummyDevice *
|
||||
VirtIODummyDeviceParams::create() const
|
||||
{
|
||||
return new VirtIODummyDevice(*this);
|
||||
}
|
||||
|
||||
@@ -164,9 +164,3 @@ VirtIOBlock::RequestQueue::onNotifyDescriptor(VirtDescriptor *desc)
|
||||
produceDescriptor(desc, sizeof(BlkRequest) + data_size + sizeof(Status));
|
||||
parent.kick();
|
||||
}
|
||||
|
||||
VirtIOBlock *
|
||||
VirtIOBlockParams::create() const
|
||||
{
|
||||
return new VirtIOBlock(*this);
|
||||
}
|
||||
|
||||
@@ -112,9 +112,3 @@ VirtIOConsole::TermTransQueue::onNotifyDescriptor(VirtDescriptor *desc)
|
||||
produceDescriptor(desc, 0);
|
||||
parent.kick();
|
||||
}
|
||||
|
||||
VirtIOConsole *
|
||||
VirtIOConsoleParams::create() const
|
||||
{
|
||||
return new VirtIOConsole(*this);
|
||||
}
|
||||
|
||||
@@ -472,15 +472,7 @@ VirtIO9PDiod::terminateDiod()
|
||||
// Managed to kill diod
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
VirtIO9PDiod *
|
||||
VirtIO9PDiodParams::create() const
|
||||
{
|
||||
return new VirtIO9PDiod(*this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
VirtIO9PSocket::VirtIO9PSocket(const Params ¶ms)
|
||||
@@ -569,10 +561,3 @@ VirtIO9PSocket::SocketDataEvent::process(int revent)
|
||||
{
|
||||
parent.serverDataReady();
|
||||
}
|
||||
|
||||
|
||||
VirtIO9PSocket *
|
||||
VirtIO9PSocketParams::create() const
|
||||
{
|
||||
return new VirtIO9PSocket(*this);
|
||||
}
|
||||
|
||||
@@ -222,9 +222,3 @@ PciVirtIO::kick()
|
||||
interruptDeliveryPending = true;
|
||||
intrPost();
|
||||
}
|
||||
|
||||
PciVirtIO *
|
||||
PciVirtIOParams::create() const
|
||||
{
|
||||
return new PciVirtIO(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user