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

@@ -159,12 +159,6 @@ RawDiskImage::write(const uint8_t *data, std::streampos offset)
return stream.tellp() - pos;
}
RawDiskImage *
RawDiskImageParams::create() const
{
return new RawDiskImage(*this);
}
////////////////////////////////////////////////////////////////////////
//
// Copy on Write Disk image
@@ -441,9 +435,3 @@ CowDiskImage::unserialize(CheckpointIn &cp)
cowFilename = cp.getCptDir() + "/" + cowFilename;
open(cowFilename);
}
CowDiskImage *
CowDiskImageParams::create() const
{
return new CowDiskImage(*this);
}

View File

@@ -566,9 +566,3 @@ IdeController::Channel::unserialize(const std::string &base, CheckpointIn &cp)
paramIn(cp, base + ".selectBit", selectBit);
select(selectBit);
}
IdeController *
IdeControllerParams::create() const
{
return new IdeController(*this);
}

View File

@@ -1197,9 +1197,3 @@ IdeDisk::unserialize(CheckpointIn &cp)
UNSERIALIZE_ENUM(dmaState);
UNSERIALIZE_ARRAY(dataBuffer, MAX_DMA_SIZE);
}
IdeDisk *
IdeDiskParams::create() const
{
return new IdeDisk(*this);
}

View File

@@ -82,9 +82,3 @@ SimpleDisk::write(Addr addr, baddr_t block, int count)
{
panic("unimplemented!\n");
}
SimpleDisk *
SimpleDiskParams::create() const
{
return new SimpleDisk(*this);
}