From: Gabe Black Date: Sat, 24 Oct 2020 02:34:07 +0000 (-0700) Subject: misc: Delete the now unnecessary create methods. X-Git-Tag: develop-gem5-snapshot~539 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d05a0a4ea121aa69715e5049997a64fa24cd94f4;p=gem5.git 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 Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/src/arch/arm/fastmodel/CortexA76/cortex_a76.cc b/src/arch/arm/fastmodel/CortexA76/cortex_a76.cc index 802299b9f..d2b96764e 100644 --- a/src/arch/arm/fastmodel/CortexA76/cortex_a76.cc +++ b/src/arch/arm/fastmodel/CortexA76/cortex_a76.cc @@ -202,15 +202,3 @@ CortexA76Cluster::getPort(const std::string &if_name, PortID idx) } } // namespace FastModel - -FastModel::CortexA76 * -FastModelCortexA76Params::create() const -{ - return new FastModel::CortexA76(*this); -} - -FastModel::CortexA76Cluster * -FastModelCortexA76ClusterParams::create() const -{ - return new FastModel::CortexA76Cluster(*this); -} diff --git a/src/arch/arm/fastmodel/CortexA76/evs.cc b/src/arch/arm/fastmodel/CortexA76/evs.cc index 4828b2df7..360a5dd49 100644 --- a/src/arch/arm/fastmodel/CortexA76/evs.cc +++ b/src/arch/arm/fastmodel/CortexA76/evs.cc @@ -153,27 +153,3 @@ template class ScxEvsCortexA76; template class ScxEvsCortexA76; } // namespace FastModel - -FastModel::ScxEvsCortexA76x1 * -FastModelScxEvsCortexA76x1Params::create() const -{ - return new FastModel::ScxEvsCortexA76x1(name.c_str(), *this); -} - -FastModel::ScxEvsCortexA76x2 * -FastModelScxEvsCortexA76x2Params::create() const -{ - return new FastModel::ScxEvsCortexA76x2(name.c_str(), *this); -} - -FastModel::ScxEvsCortexA76x3 * -FastModelScxEvsCortexA76x3Params::create() const -{ - return new FastModel::ScxEvsCortexA76x3(name.c_str(), *this); -} - -FastModel::ScxEvsCortexA76x4 * -FastModelScxEvsCortexA76x4Params::create() const -{ - return new FastModel::ScxEvsCortexA76x4(name.c_str(), *this); -} diff --git a/src/arch/arm/fastmodel/CortexA76/evs.hh b/src/arch/arm/fastmodel/CortexA76/evs.hh index 365780835..e57bdd763 100644 --- a/src/arch/arm/fastmodel/CortexA76/evs.hh +++ b/src/arch/arm/fastmodel/CortexA76/evs.hh @@ -93,6 +93,7 @@ class ScxEvsCortexA76 : public Types::Base const Params ¶ms; public: + ScxEvsCortexA76(const Params &p) : ScxEvsCortexA76(p.name.c_str(), p) {} ScxEvsCortexA76(const sc_core::sc_module_name &mod_name, const Params &p); void before_end_of_elaboration() override; diff --git a/src/arch/arm/fastmodel/CortexR52/cortex_r52.cc b/src/arch/arm/fastmodel/CortexR52/cortex_r52.cc index 31485d2b6..18bb33d48 100644 --- a/src/arch/arm/fastmodel/CortexR52/cortex_r52.cc +++ b/src/arch/arm/fastmodel/CortexR52/cortex_r52.cc @@ -160,15 +160,3 @@ CortexR52Cluster::getPort(const std::string &if_name, PortID idx) } } // namespace FastModel - -FastModel::CortexR52 * -FastModelCortexR52Params::create() const -{ - return new FastModel::CortexR52(*this); -} - -FastModel::CortexR52Cluster * -FastModelCortexR52ClusterParams::create() const -{ - return new FastModel::CortexR52Cluster(*this); -} diff --git a/src/arch/arm/fastmodel/CortexR52/evs.cc b/src/arch/arm/fastmodel/CortexR52/evs.cc index 403f3c3ed..50ac670f6 100644 --- a/src/arch/arm/fastmodel/CortexR52/evs.cc +++ b/src/arch/arm/fastmodel/CortexR52/evs.cc @@ -129,27 +129,3 @@ template class ScxEvsCortexR52; template class ScxEvsCortexR52; } // namespace FastModel - -FastModel::ScxEvsCortexR52x1 * -FastModelScxEvsCortexR52x1Params::create() const -{ - return new FastModel::ScxEvsCortexR52x1(name.c_str(), *this); -} - -FastModel::ScxEvsCortexR52x2 * -FastModelScxEvsCortexR52x2Params::create() const -{ - return new FastModel::ScxEvsCortexR52x2(name.c_str(), *this); -} - -FastModel::ScxEvsCortexR52x3 * -FastModelScxEvsCortexR52x3Params::create() const -{ - return new FastModel::ScxEvsCortexR52x3(name.c_str(), *this); -} - -FastModel::ScxEvsCortexR52x4 * -FastModelScxEvsCortexR52x4Params::create() const -{ - return new FastModel::ScxEvsCortexR52x4(name.c_str(), *this); -} diff --git a/src/arch/arm/fastmodel/CortexR52/evs.hh b/src/arch/arm/fastmodel/CortexR52/evs.hh index c49a9aded..3f663020a 100644 --- a/src/arch/arm/fastmodel/CortexR52/evs.hh +++ b/src/arch/arm/fastmodel/CortexR52/evs.hh @@ -117,6 +117,7 @@ class ScxEvsCortexR52 : public Types::Base const Params ¶ms; public: + ScxEvsCortexR52(const Params &p) : ScxEvsCortexR52(p.name.c_str(), p) {} ScxEvsCortexR52(const sc_core::sc_module_name &mod_name, const Params &p); void diff --git a/src/arch/arm/fastmodel/GIC/gic.cc b/src/arch/arm/fastmodel/GIC/gic.cc index 934305bd5..c34fc022b 100644 --- a/src/arch/arm/fastmodel/GIC/gic.cc +++ b/src/arch/arm/fastmodel/GIC/gic.cc @@ -358,15 +358,3 @@ GIC::supportsVersion(GicVersion version) } } // namespace FastModel - -FastModel::SCGIC * -SCFastModelGICParams::create() const -{ - return new FastModel::SCGIC(*this, name.c_str()); -} - -FastModel::GIC * -FastModelGICParams::create() const -{ - return new FastModel::GIC(*this); -} diff --git a/src/arch/arm/fastmodel/GIC/gic.hh b/src/arch/arm/fastmodel/GIC/gic.hh index 63698b94d..683695ed7 100644 --- a/src/arch/arm/fastmodel/GIC/gic.hh +++ b/src/arch/arm/fastmodel/GIC/gic.hh @@ -83,6 +83,7 @@ class SCGIC : public scx_evs_GIC const SCFastModelGICParams &_params; public: + SCGIC(const SCFastModelGICParams &p) : SCGIC(p, p.name.c_str()) {} SCGIC(const SCFastModelGICParams ¶ms, sc_core::sc_module_name _name); SignalInterruptInitiatorSocket signalInterrupt; diff --git a/src/arch/arm/fastmodel/iris/SConscript b/src/arch/arm/fastmodel/iris/SConscript index 2e0b52b88..9586f0fca 100644 --- a/src/arch/arm/fastmodel/iris/SConscript +++ b/src/arch/arm/fastmodel/iris/SConscript @@ -32,7 +32,6 @@ SimObject('Iris.py') Source('cpu.cc') Source('interrupts.cc') Source('isa.cc') -Source('mmu.cc') Source('tlb.cc') Source('thread_context.cc') diff --git a/src/arch/arm/fastmodel/iris/interrupts.cc b/src/arch/arm/fastmodel/iris/interrupts.cc index a6cf6c03d..a3c777d40 100644 --- a/src/arch/arm/fastmodel/iris/interrupts.cc +++ b/src/arch/arm/fastmodel/iris/interrupts.cc @@ -106,9 +106,3 @@ void Iris::Interrupts::unserialize(CheckpointIn &cp) { } - -Iris::Interrupts * -IrisInterruptsParams::create() const -{ - return new Iris::Interrupts(*this); -} diff --git a/src/arch/arm/fastmodel/iris/isa.cc b/src/arch/arm/fastmodel/iris/isa.cc index 20ebf1c1d..147043424 100644 --- a/src/arch/arm/fastmodel/iris/isa.cc +++ b/src/arch/arm/fastmodel/iris/isa.cc @@ -40,9 +40,3 @@ Iris::ISA::serialize(CheckpointOut &cp) const miscRegs[i] = tc->readMiscRegNoEffect(i); SERIALIZE_ARRAY(miscRegs, ArmISA::NUM_PHYS_MISCREGS); } - -Iris::ISA * -IrisISAParams::create() const -{ - return new Iris::ISA(*this); -} diff --git a/src/arch/arm/fastmodel/iris/mmu.cc b/src/arch/arm/fastmodel/iris/mmu.cc deleted file mode 100644 index 21d16015b..000000000 --- a/src/arch/arm/fastmodel/iris/mmu.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2020 ARM Limited - * All rights reserved - * - * The license below extends only to copyright in the software and shall - * not be construed as granting a license to any other intellectual - * property including but not limited to intellectual property relating - * to a hardware implementation of the functionality of the software - * licensed hereunder. You may use the software subject to the license - * terms below provided that you ensure that this notice is replicated - * unmodified and in its entirety in all distributions of the software, - * modified or unmodified, in source code or in binary form. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer; - * redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution; - * neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "arch/arm/fastmodel/iris/mmu.hh" - -Iris::MMU * -IrisMMUParams::create() const -{ - return new Iris::MMU(*this); -} diff --git a/src/arch/arm/fastmodel/iris/tlb.cc b/src/arch/arm/fastmodel/iris/tlb.cc index 84dd59d46..45bd81091 100644 --- a/src/arch/arm/fastmodel/iris/tlb.cc +++ b/src/arch/arm/fastmodel/iris/tlb.cc @@ -65,9 +65,3 @@ Iris::TLB::translateTiming(const RequestPtr &req, ::ThreadContext *tc, assert(translation); translation->finish(translateAtomic(req, tc, mode), req, tc, mode); } - -Iris::TLB * -IrisTLBParams::create() const -{ - return new Iris::TLB(*this); -} diff --git a/src/arch/arm/freebsd/fs_workload.cc b/src/arch/arm/freebsd/fs_workload.cc index 8beba8bf5..241b40e0c 100644 --- a/src/arch/arm/freebsd/fs_workload.cc +++ b/src/arch/arm/freebsd/fs_workload.cc @@ -126,9 +126,3 @@ FsFreebsd::~FsFreebsd() } } // namespace ArmISA - -ArmISA::FsFreebsd * -ArmFsFreebsdParams::create() const -{ - return new ArmISA::FsFreebsd(*this); -} diff --git a/src/arch/arm/freebsd/se_workload.cc b/src/arch/arm/freebsd/se_workload.cc index 7c79e7b7f..ab6b03ec6 100644 --- a/src/arch/arm/freebsd/se_workload.cc +++ b/src/arch/arm/freebsd/se_workload.cc @@ -154,9 +154,3 @@ EmuFreebsd::syscall(ThreadContext *tc) } } // namespace ArmISA - -ArmISA::EmuFreebsd * -ArmEmuFreebsdParams::create() const -{ - return new ArmISA::EmuFreebsd(*this); -} diff --git a/src/arch/arm/fs_workload.cc b/src/arch/arm/fs_workload.cc index 110ed00c5..84d3a0d1e 100644 --- a/src/arch/arm/fs_workload.cc +++ b/src/arch/arm/fs_workload.cc @@ -157,9 +157,3 @@ FsWorkload::getBootLoader(Loader::ObjectFile *const obj) } } // namespace ArmISA - -ArmISA::FsWorkload * -ArmFsWorkloadParams::create() const -{ - return new ArmISA::FsWorkload(*this); -} diff --git a/src/arch/arm/interrupts.cc b/src/arch/arm/interrupts.cc index f5e7782c1..6b75403c7 100644 --- a/src/arch/arm/interrupts.cc +++ b/src/arch/arm/interrupts.cc @@ -39,12 +39,6 @@ #include "arch/arm/system.hh" -ArmISA::Interrupts * -ArmInterruptsParams::create() const -{ - return new ArmISA::Interrupts(*this); -} - bool ArmISA::Interrupts::takeInt(InterruptTypes int_type) const { diff --git a/src/arch/arm/isa.cc b/src/arch/arm/isa.cc index 1c70a771e..3607c2988 100644 --- a/src/arch/arm/isa.cc +++ b/src/arch/arm/isa.cc @@ -2487,9 +2487,3 @@ ISA::MiscRegLUTEntryInitializer::highest(ArmSystem *const sys) const } } // namespace ArmISA - -ArmISA::ISA * -ArmISAParams::create() const -{ - return new ArmISA::ISA(*this); -} diff --git a/src/arch/arm/kvm/arm_cpu.cc b/src/arch/arm/kvm/arm_cpu.cc index 0e5823e23..4fbb78e21 100644 --- a/src/arch/arm/kvm/arm_cpu.cc +++ b/src/arch/arm/kvm/arm_cpu.cc @@ -841,9 +841,3 @@ ArmKvmCPU::updateTCStateVFP(uint64_t id, bool show_warnings) warn("Unhandled VFP register: 0x%x\n", id); } } - -ArmKvmCPU * -ArmKvmCPUParams::create() const -{ - return new ArmKvmCPU(*this); -} diff --git a/src/arch/arm/kvm/armv8_cpu.cc b/src/arch/arm/kvm/armv8_cpu.cc index 324507a2d..97790940d 100644 --- a/src/arch/arm/kvm/armv8_cpu.cc +++ b/src/arch/arm/kvm/armv8_cpu.cc @@ -395,9 +395,3 @@ ArmV8KvmCPU::getSysRegMap() const return sysRegMap; } - -ArmV8KvmCPU * -ArmV8KvmCPUParams::create() const -{ - return new ArmV8KvmCPU(*this); -} diff --git a/src/arch/arm/kvm/gic.cc b/src/arch/arm/kvm/gic.cc index 5f5cd14df..676783352 100644 --- a/src/arch/arm/kvm/gic.cc +++ b/src/arch/arm/kvm/gic.cc @@ -425,9 +425,3 @@ MuxingKvmGic::fromKvmToGicV2() assert((cpuPriority[cpu] & ~0xff) == 0); } } - -MuxingKvmGic * -MuxingKvmGicParams::create() const -{ - return new MuxingKvmGic(*this); -} diff --git a/src/arch/arm/linux/fs_workload.cc b/src/arch/arm/linux/fs_workload.cc index ad68b22bf..54d5c863e 100644 --- a/src/arch/arm/linux/fs_workload.cc +++ b/src/arch/arm/linux/fs_workload.cc @@ -358,9 +358,3 @@ DumpStats::process(ThreadContext *tc) } } // namespace ArmISA - -ArmISA::FsLinux * -ArmFsLinuxParams::create() const -{ - return new ArmISA::FsLinux(*this); -} diff --git a/src/arch/arm/linux/se_workload.cc b/src/arch/arm/linux/se_workload.cc index a3650ca00..da523fb6c 100644 --- a/src/arch/arm/linux/se_workload.cc +++ b/src/arch/arm/linux/se_workload.cc @@ -863,9 +863,3 @@ EmuLinux::syscall(ThreadContext *tc) } } // namespace ArmISA - -ArmISA::EmuLinux * -ArmEmuLinuxParams::create() const -{ - return new ArmISA::EmuLinux(*this); -} diff --git a/src/arch/arm/mmu.cc b/src/arch/arm/mmu.cc index 0895cee2f..b9a86373d 100644 --- a/src/arch/arm/mmu.cc +++ b/src/arch/arm/mmu.cc @@ -66,9 +66,3 @@ MMU::invalidateMiscReg(TLBType type) getDTBPtr()->invalidateMiscReg(); } } - -ArmISA::MMU * -ArmMMUParams::create() const -{ - return new ArmISA::MMU(*this); -} diff --git a/src/arch/arm/nativetrace.cc b/src/arch/arm/nativetrace.cc index 559602886..7075adbfa 100644 --- a/src/arch/arm/nativetrace.cc +++ b/src/arch/arm/nativetrace.cc @@ -219,13 +219,3 @@ Trace::ArmNativeTrace::check(NativeTraceRecord *record) } } // namespace Trace - -//////////////////////////////////////////////////////////////////////// -// -// ExeTracer Simulation Object -// -Trace::ArmNativeTrace * -ArmNativeTraceParams::create() const -{ - return new Trace::ArmNativeTrace(*this); -} diff --git a/src/arch/arm/pmu.cc b/src/arch/arm/pmu.cc index 17764e022..51dfdca20 100644 --- a/src/arch/arm/pmu.cc +++ b/src/arch/arm/pmu.cc @@ -807,9 +807,3 @@ PMU::SWIncrementEvent::write(uint64_t val) } } // namespace ArmISA - -ArmISA::PMU * -ArmPMUParams::create() const -{ - return new ArmISA::PMU(*this); -} diff --git a/src/arch/arm/semihosting.cc b/src/arch/arm/semihosting.cc index 6e782bc59..989d74c8b 100644 --- a/src/arch/arm/semihosting.cc +++ b/src/arch/arm/semihosting.cc @@ -1043,10 +1043,3 @@ operator << (std::ostream &os, const ArmSemihosting::InPlaceArg &ipa) ccprintf(os, "[%#x-%#x)", ipa.addr, ipa.addr + ipa.size - 1); return os; } - - -ArmSemihosting * -ArmSemihostingParams::create() const -{ - return new ArmSemihosting(*this); -} diff --git a/src/arch/arm/stage2_mmu.cc b/src/arch/arm/stage2_mmu.cc index 2f3f81554..a74153788 100644 --- a/src/arch/arm/stage2_mmu.cc +++ b/src/arch/arm/stage2_mmu.cc @@ -140,9 +140,3 @@ Stage2MMU::Stage2Translation::finish(const Fault &_fault, event->process(); } } - -ArmISA::Stage2MMU * -ArmStage2MMUParams::create() const -{ - return new ArmISA::Stage2MMU(*this); -} diff --git a/src/arch/arm/system.cc b/src/arch/arm/system.cc index d105fd44a..bda5ed253 100644 --- a/src/arch/arm/system.cc +++ b/src/arch/arm/system.cc @@ -234,9 +234,3 @@ ArmSystem::callClearWakeRequest(ThreadContext *tc) if (FVPBasePwrCtrl *pwr_ctrl = getArmSystem(tc)->getPowerController()) pwr_ctrl->clearWakeRequest(tc); } - -ArmSystem * -ArmSystemParams::create() const -{ - return new ArmSystem(*this); -} diff --git a/src/arch/arm/table_walker.cc b/src/arch/arm/table_walker.cc index 6e67dcd0b..e658b0266 100644 --- a/src/arch/arm/table_walker.cc +++ b/src/arch/arm/table_walker.cc @@ -2251,12 +2251,6 @@ TableWalker::insertTableEntry(DescriptorBase &descriptor, bool longDescriptor) } } -ArmISA::TableWalker * -ArmTableWalkerParams::create() const -{ - return new ArmISA::TableWalker(*this); -} - LookupLevel TableWalker::toLookupLevel(uint8_t lookup_level_as_int) { diff --git a/src/arch/arm/tlb.cc b/src/arch/arm/tlb.cc index 56bce2735..0e6118697 100644 --- a/src/arch/arm/tlb.cc +++ b/src/arch/arm/tlb.cc @@ -1692,10 +1692,3 @@ TLB::testWalk(Addr pa, Addr size, Addr va, bool is_secure, Mode mode, domain, lookup_level); } } - - -ArmISA::TLB * -ArmTLBParams::create() const -{ - return new ArmISA::TLB(*this); -} diff --git a/src/arch/arm/tracers/tarmac_parser.cc b/src/arch/arm/tracers/tarmac_parser.cc index 1c6d4dfbb..5cd37c9cd 100644 --- a/src/arch/arm/tracers/tarmac_parser.cc +++ b/src/arch/arm/tracers/tarmac_parser.cc @@ -1363,9 +1363,3 @@ TarmacParserRecord::iSetStateToStr(ISetState isetstate) const } } // namespace Trace - -Trace::TarmacParser * -TarmacParserParams::create() const -{ - return new Trace::TarmacParser(*this); -} diff --git a/src/arch/arm/tracers/tarmac_tracer.cc b/src/arch/arm/tracers/tarmac_tracer.cc index 5d1b7120d..f56e0ad75 100644 --- a/src/arch/arm/tracers/tarmac_tracer.cc +++ b/src/arch/arm/tracers/tarmac_tracer.cc @@ -93,9 +93,3 @@ TarmacTracer::getInstRecord(Tick when, ThreadContext *tc, } } // namespace Trace - -Trace::TarmacTracer * -TarmacTracerParams::create() const -{ - return new Trace::TarmacTracer(*this); -} diff --git a/src/arch/mips/SConscript b/src/arch/mips/SConscript index 62cf15d05..2859a058e 100644 --- a/src/arch/mips/SConscript +++ b/src/arch/mips/SConscript @@ -38,7 +38,6 @@ if env['TARGET_ISA'] == 'mips': Source('isa.cc') Source('linux/linux.cc') Source('linux/se_workload.cc') - Source('mmu.cc') Source('pagetable.cc') Source('process.cc') Source('remote_gdb.cc') diff --git a/src/arch/mips/interrupts.cc b/src/arch/mips/interrupts.cc index 7421f3fa1..0e6ea3f91 100644 --- a/src/arch/mips/interrupts.cc +++ b/src/arch/mips/interrupts.cc @@ -184,9 +184,3 @@ Interrupts::interruptsPending() const } } - -MipsISA::Interrupts * -MipsInterruptsParams::create() const -{ - return new MipsISA::Interrupts(*this); -} diff --git a/src/arch/mips/isa.cc b/src/arch/mips/isa.cc index 733ba0aa8..81748c6aa 100644 --- a/src/arch/mips/isa.cc +++ b/src/arch/mips/isa.cc @@ -568,9 +568,3 @@ ISA::processCP0Event(BaseCPU *cpu, CP0EventType cp0EventType) } } - -MipsISA::ISA * -MipsISAParams::create() const -{ - return new MipsISA::ISA(*this); -} diff --git a/src/arch/mips/linux/se_workload.cc b/src/arch/mips/linux/se_workload.cc index 5caed39c8..0abe2632e 100644 --- a/src/arch/mips/linux/se_workload.cc +++ b/src/arch/mips/linux/se_workload.cc @@ -477,9 +477,3 @@ SyscallDescTable EmuLinux::syscallDescs = { }; } // namespace MipsISA - -MipsISA::EmuLinux * -MipsEmuLinuxParams::create() const -{ - return new MipsISA::EmuLinux(*this); -} diff --git a/src/arch/mips/mmu.cc b/src/arch/mips/mmu.cc deleted file mode 100644 index a42685baf..000000000 --- a/src/arch/mips/mmu.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2020 ARM Limited - * All rights reserved - * - * The license below extends only to copyright in the software and shall - * not be construed as granting a license to any other intellectual - * property including but not limited to intellectual property relating - * to a hardware implementation of the functionality of the software - * licensed hereunder. You may use the software subject to the license - * terms below provided that you ensure that this notice is replicated - * unmodified and in its entirety in all distributions of the software, - * modified or unmodified, in source code or in binary form. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer; - * redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution; - * neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "arch/mips/mmu.hh" - -MipsISA::MMU * -MipsMMUParams::create() const -{ - return new MipsISA::MMU(*this); -} diff --git a/src/arch/mips/tlb.cc b/src/arch/mips/tlb.cc index 4dd0aa236..3ceb1ae14 100644 --- a/src/arch/mips/tlb.cc +++ b/src/arch/mips/tlb.cc @@ -256,9 +256,3 @@ TLB::index(bool advance) return *pte; } - -MipsISA::TLB * -MipsTLBParams::create() const -{ - return new MipsISA::TLB(*this); -} diff --git a/src/arch/power/SConscript b/src/arch/power/SConscript index 1ae43f22c..cf79094a7 100644 --- a/src/arch/power/SConscript +++ b/src/arch/power/SConscript @@ -40,10 +40,8 @@ if env['TARGET_ISA'] == 'power': Source('insts/floating.cc') Source('insts/condition.cc') Source('insts/static_inst.cc') - Source('interrupts.cc') Source('linux/linux.cc') Source('linux/se_workload.cc') - Source('mmu.cc') Source('isa.cc') Source('pagetable.cc') Source('process.cc') diff --git a/src/arch/power/interrupts.cc b/src/arch/power/interrupts.cc deleted file mode 100644 index 3d3e3fa85..000000000 --- a/src/arch/power/interrupts.cc +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2011 Google - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer; - * redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution; - * neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "arch/power/interrupts.hh" - -PowerISA::Interrupts * -PowerInterruptsParams::create() const -{ - return new PowerISA::Interrupts(*this); -} diff --git a/src/arch/power/isa.cc b/src/arch/power/isa.cc index 06b3d9386..02a04c26d 100644 --- a/src/arch/power/isa.cc +++ b/src/arch/power/isa.cc @@ -54,10 +54,3 @@ ISA::params() const } } - -PowerISA::ISA * -PowerISAParams::create() const -{ - return new PowerISA::ISA(*this); -} - diff --git a/src/arch/power/linux/se_workload.cc b/src/arch/power/linux/se_workload.cc index 7e2b22cfa..864468ff6 100644 --- a/src/arch/power/linux/se_workload.cc +++ b/src/arch/power/linux/se_workload.cc @@ -448,9 +448,3 @@ SyscallDescTable EmuLinux::syscallDescs = { }; } // namespace PowerISA - -PowerISA::EmuLinux * -PowerEmuLinuxParams::create() const -{ - return new PowerISA::EmuLinux(*this); -} diff --git a/src/arch/power/mmu.cc b/src/arch/power/mmu.cc deleted file mode 100644 index 5aefcb325..000000000 --- a/src/arch/power/mmu.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2020 ARM Limited - * All rights reserved - * - * The license below extends only to copyright in the software and shall - * not be construed as granting a license to any other intellectual - * property including but not limited to intellectual property relating - * to a hardware implementation of the functionality of the software - * licensed hereunder. You may use the software subject to the license - * terms below provided that you ensure that this notice is replicated - * unmodified and in its entirety in all distributions of the software, - * modified or unmodified, in source code or in binary form. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer; - * redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution; - * neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "arch/power/mmu.hh" - -PowerISA::MMU * -PowerMMUParams::create() const -{ - return new PowerISA::MMU(*this); -} diff --git a/src/arch/power/tlb.cc b/src/arch/power/tlb.cc index 88f66e0a5..dd3b50a12 100644 --- a/src/arch/power/tlb.cc +++ b/src/arch/power/tlb.cc @@ -278,9 +278,3 @@ TLB::index(bool advance) return *pte; } - -PowerISA::TLB * -PowerTLBParams::create() const -{ - return new PowerISA::TLB(*this); -} diff --git a/src/arch/riscv/SConscript b/src/arch/riscv/SConscript index 5f1aedc9b..3913be9d1 100644 --- a/src/arch/riscv/SConscript +++ b/src/arch/riscv/SConscript @@ -46,9 +46,7 @@ if env['TARGET_ISA'] == 'riscv': Source('decoder.cc') Source('faults.cc') Source('isa.cc') - Source('interrupts.cc') Source('locked_mem.cc') - Source('mmu.cc') Source('process.cc') Source('pagetable.cc') Source('pagetable_walker.cc') diff --git a/src/arch/riscv/bare_metal/fs_workload.cc b/src/arch/riscv/bare_metal/fs_workload.cc index eb2120c51..e9a00ac0d 100644 --- a/src/arch/riscv/bare_metal/fs_workload.cc +++ b/src/arch/riscv/bare_metal/fs_workload.cc @@ -69,9 +69,3 @@ BareMetal::initState() } } // namespace RiscvISA - -RiscvISA::BareMetal * -RiscvBareMetalParams::create() const -{ - return new RiscvISA::BareMetal(*this); -} diff --git a/src/arch/riscv/interrupts.cc b/src/arch/riscv/interrupts.cc deleted file mode 100644 index 2cc88f1ab..000000000 --- a/src/arch/riscv/interrupts.cc +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2011 Google - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer; - * redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution; - * neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "arch/riscv/interrupts.hh" - -RiscvISA::Interrupts * -RiscvInterruptsParams::create() const -{ - return new RiscvISA::Interrupts(*this); -} diff --git a/src/arch/riscv/isa.cc b/src/arch/riscv/isa.cc index 080bf83a1..8401310db 100644 --- a/src/arch/riscv/isa.cc +++ b/src/arch/riscv/isa.cc @@ -411,9 +411,3 @@ ISA::unserialize(CheckpointIn &cp) } } - -RiscvISA::ISA * -RiscvISAParams::create() const -{ - return new RiscvISA::ISA(*this); -} diff --git a/src/arch/riscv/linux/se_workload.cc b/src/arch/riscv/linux/se_workload.cc index 03a61d6d6..a59423e5f 100644 --- a/src/arch/riscv/linux/se_workload.cc +++ b/src/arch/riscv/linux/se_workload.cc @@ -783,9 +783,3 @@ SyscallDescTable EmuLinux::syscallDescs32 = { }; } // namespace RiscvISA - -RiscvISA::EmuLinux * -RiscvEmuLinuxParams::create() const -{ - return new RiscvISA::EmuLinux(*this); -} diff --git a/src/arch/riscv/mmu.cc b/src/arch/riscv/mmu.cc deleted file mode 100644 index a50f9bf88..000000000 --- a/src/arch/riscv/mmu.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2020 ARM Limited - * All rights reserved - * - * The license below extends only to copyright in the software and shall - * not be construed as granting a license to any other intellectual - * property including but not limited to intellectual property relating - * to a hardware implementation of the functionality of the software - * licensed hereunder. You may use the software subject to the license - * terms below provided that you ensure that this notice is replicated - * unmodified and in its entirety in all distributions of the software, - * modified or unmodified, in source code or in binary form. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer; - * redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution; - * neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "arch/riscv/mmu.hh" - -RiscvISA::MMU * -RiscvMMUParams::create() const -{ - return new RiscvISA::MMU(*this); -} diff --git a/src/arch/riscv/pagetable_walker.cc b/src/arch/riscv/pagetable_walker.cc index 98f13200a..e7e2b47ba 100644 --- a/src/arch/riscv/pagetable_walker.cc +++ b/src/arch/riscv/pagetable_walker.cc @@ -579,9 +579,3 @@ Walker::WalkerState::pageFault(bool present) } } /* end namespace RiscvISA */ - -RiscvISA::Walker * -RiscvPagetableWalkerParams::create() const -{ - return new RiscvISA::Walker(*this); -} diff --git a/src/arch/riscv/tlb.cc b/src/arch/riscv/tlb.cc index 62517e90c..c1ed30e02 100644 --- a/src/arch/riscv/tlb.cc +++ b/src/arch/riscv/tlb.cc @@ -512,9 +512,3 @@ TLB::TlbStats::TlbStats(Stats::Group *parent) read_accesses + write_accesses) { } - -RiscvISA::TLB * -RiscvTLBParams::create() const -{ - return new TLB(*this); -} diff --git a/src/arch/sparc/SConscript b/src/arch/sparc/SConscript index 700c076e7..5563702d6 100644 --- a/src/arch/sparc/SConscript +++ b/src/arch/sparc/SConscript @@ -33,12 +33,10 @@ if env['TARGET_ISA'] == 'sparc': Source('decoder.cc') Source('faults.cc') Source('fs_workload.cc') - Source('interrupts.cc') Source('isa.cc') Source('linux/linux.cc') Source('linux/se_workload.cc') Source('linux/syscalls.cc') - Source('mmu.cc') Source('nativetrace.cc') Source('pagetable.cc') Source('process.cc') diff --git a/src/arch/sparc/fs_workload.cc b/src/arch/sparc/fs_workload.cc index fc842c2c3..813e728de 100644 --- a/src/arch/sparc/fs_workload.cc +++ b/src/arch/sparc/fs_workload.cc @@ -50,9 +50,3 @@ FsWorkload::initState() } } // namespace SparcISA - -SparcISA::FsWorkload * -SparcFsWorkloadParams::create() const -{ - return new SparcISA::FsWorkload(*this); -} diff --git a/src/arch/sparc/interrupts.cc b/src/arch/sparc/interrupts.cc deleted file mode 100644 index d957b4e1f..000000000 --- a/src/arch/sparc/interrupts.cc +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2008 The Regents of The University of Michigan - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer; - * redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution; - * neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "arch/sparc/interrupts.hh" - -SparcISA::Interrupts * -SparcInterruptsParams::create() const -{ - return new SparcISA::Interrupts(*this); -} diff --git a/src/arch/sparc/isa.cc b/src/arch/sparc/isa.cc index c8ed63ee6..20f4412bb 100644 --- a/src/arch/sparc/isa.cc +++ b/src/arch/sparc/isa.cc @@ -759,9 +759,3 @@ ISA::unserialize(CheckpointIn &cp) } } - -SparcISA::ISA * -SparcISAParams::create() const -{ - return new SparcISA::ISA(*this); -} diff --git a/src/arch/sparc/linux/se_workload.cc b/src/arch/sparc/linux/se_workload.cc index 75f74cf65..c8d08bb17 100644 --- a/src/arch/sparc/linux/se_workload.cc +++ b/src/arch/sparc/linux/se_workload.cc @@ -137,9 +137,3 @@ EmuLinux::syscall(ThreadContext *tc) } } // namespace SparcISA - -SparcISA::EmuLinux * -SparcEmuLinuxParams::create() const -{ - return new SparcISA::EmuLinux(*this); -} diff --git a/src/arch/sparc/mmu.cc b/src/arch/sparc/mmu.cc deleted file mode 100644 index e2da2f436..000000000 --- a/src/arch/sparc/mmu.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2020 ARM Limited - * All rights reserved - * - * The license below extends only to copyright in the software and shall - * not be construed as granting a license to any other intellectual - * property including but not limited to intellectual property relating - * to a hardware implementation of the functionality of the software - * licensed hereunder. You may use the software subject to the license - * terms below provided that you ensure that this notice is replicated - * unmodified and in its entirety in all distributions of the software, - * modified or unmodified, in source code or in binary form. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer; - * redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution; - * neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "arch/sparc/mmu.hh" - -SparcISA::MMU * -SparcMMUParams::create() const -{ - return new SparcISA::MMU(*this); -} diff --git a/src/arch/sparc/nativetrace.cc b/src/arch/sparc/nativetrace.cc index 7cd19c711..32ce10ee4 100644 --- a/src/arch/sparc/nativetrace.cc +++ b/src/arch/sparc/nativetrace.cc @@ -87,13 +87,3 @@ Trace::SparcNativeTrace::check(NativeTraceRecord *record) } } // namespace Trace - -//////////////////////////////////////////////////////////////////////// -// -// ExeTracer Simulation Object -// -Trace::SparcNativeTrace * -SparcNativeTraceParams::create() const -{ - return new Trace::SparcNativeTrace(*this); -}; diff --git a/src/arch/sparc/tlb.cc b/src/arch/sparc/tlb.cc index 9dde4ef78..46e03e3c3 100644 --- a/src/arch/sparc/tlb.cc +++ b/src/arch/sparc/tlb.cc @@ -1507,9 +1507,3 @@ TLB::unserialize(CheckpointIn &cp) } } // namespace SparcISA - -SparcISA::TLB * -SparcTLBParams::create() const -{ - return new SparcISA::TLB(*this); -} diff --git a/src/arch/x86/SConscript b/src/arch/x86/SConscript index 7317ea96c..f790ec19b 100644 --- a/src/arch/x86/SConscript +++ b/src/arch/x86/SConscript @@ -58,7 +58,6 @@ Source('insts/microregop.cc') Source('insts/static_inst.cc') Source('interrupts.cc') Source('isa.cc') -Source('mmu.cc') Source('nativetrace.cc') Source('pagetable.cc') Source('pagetable_walker.cc') diff --git a/src/arch/x86/bios/acpi.cc b/src/arch/x86/bios/acpi.cc index c4fd27dd0..5ecb09bd4 100644 --- a/src/arch/x86/bios/acpi.cc +++ b/src/arch/x86/bios/acpi.cc @@ -68,21 +68,3 @@ X86ISA::ACPI::RSDT::RSDT(const Params &p) : X86ISA::ACPI::XSDT::XSDT(const Params &p) : SysDescTable(p, "XSDT", 1), entries(p.entries) {} - -X86ISA::ACPI::RSDP * -X86ACPIRSDPParams::create() const -{ - return new X86ISA::ACPI::RSDP(*this); -} - -X86ISA::ACPI::RSDT * -X86ACPIRSDTParams::create() const -{ - return new X86ISA::ACPI::RSDT(*this); -} - -X86ISA::ACPI::XSDT * -X86ACPIXSDTParams::create() const -{ - return new X86ISA::ACPI::XSDT(*this); -} diff --git a/src/arch/x86/bios/e820.cc b/src/arch/x86/bios/e820.cc index 09cf3d1f6..a377703aa 100644 --- a/src/arch/x86/bios/e820.cc +++ b/src/arch/x86/bios/e820.cc @@ -70,15 +70,3 @@ void X86ISA::E820Table::writeTo(PortProxy& proxy, Addr countAddr, Addr addr) writeVal(entries[i]->type, proxy, addr); } } - -E820Table * -X86E820TableParams::create() const -{ - return new E820Table(*this); -} - -E820Entry * -X86E820EntryParams::create() const -{ - return new E820Entry(*this); -} diff --git a/src/arch/x86/bios/intelmp.cc b/src/arch/x86/bios/intelmp.cc index 2050c27bd..6378c48bb 100644 --- a/src/arch/x86/bios/intelmp.cc +++ b/src/arch/x86/bios/intelmp.cc @@ -150,12 +150,6 @@ X86ISA::IntelMP::FloatingPointer::FloatingPointer(const Params &p) : defaultConfig(p.default_config), imcrPresent(p.imcr_present) {} -X86ISA::IntelMP::FloatingPointer * -X86IntelMPFloatingPointerParams::create() const -{ - return new X86ISA::IntelMP::FloatingPointer(*this); -} - Addr X86ISA::IntelMP::BaseConfigEntry::writeOut(PortProxy& proxy, Addr addr, uint8_t &checkSum) @@ -253,12 +247,6 @@ X86ISA::IntelMP::ConfigTable::ConfigTable(const Params &p) : SimObject(p), baseEntries(p.base_entries), extEntries(p.ext_entries) {} -X86ISA::IntelMP::ConfigTable * -X86IntelMPConfigTableParams::create() const -{ - return new X86ISA::IntelMP::ConfigTable(*this); -} - Addr X86ISA::IntelMP::Processor::writeOut( PortProxy& proxy, Addr addr, uint8_t &checkSum) @@ -290,12 +278,6 @@ X86ISA::IntelMP::Processor::Processor(const Params &p) : BaseConfigEntry(p, 0), replaceBits(cpuSignature, 11, 8, p.family); } -X86ISA::IntelMP::Processor * -X86IntelMPProcessorParams::create() const -{ - return new X86ISA::IntelMP::Processor(*this); -} - Addr X86ISA::IntelMP::Bus::writeOut( PortProxy& proxy, Addr addr, uint8_t &checkSum) @@ -310,12 +292,6 @@ X86ISA::IntelMP::Bus::Bus(const Params &p) : BaseConfigEntry(p, 1), busID(p.bus_id), busType(p.bus_type) {} -X86ISA::IntelMP::Bus * -X86IntelMPBusParams::create() const -{ - return new X86ISA::IntelMP::Bus(*this); -} - Addr X86ISA::IntelMP::IOAPIC::writeOut( PortProxy& proxy, Addr addr, uint8_t &checkSum) @@ -335,12 +311,6 @@ X86ISA::IntelMP::IOAPIC::IOAPIC(const Params &p) : BaseConfigEntry(p, 2), flags |= 1; } -X86ISA::IntelMP::IOAPIC * -X86IntelMPIOAPICParams::create() const -{ - return new X86ISA::IntelMP::IOAPIC(*this); -} - Addr X86ISA::IntelMP::IntAssignment::writeOut( PortProxy& proxy, Addr addr, uint8_t &checkSum) @@ -361,24 +331,12 @@ X86ISA::IntelMP::IOIntAssignment::IOIntAssignment(const Params &p) : p.dest_io_apic_id, p.dest_io_apic_intin) {} -X86ISA::IntelMP::IOIntAssignment * -X86IntelMPIOIntAssignmentParams::create() const -{ - return new X86ISA::IntelMP::IOIntAssignment(*this); -} - X86ISA::IntelMP::LocalIntAssignment::LocalIntAssignment(const Params &p) : IntAssignment(p, p.interrupt_type, p.polarity, p.trigger, 4, p.source_bus_id, p.source_bus_irq, p.dest_local_apic_id, p.dest_local_apic_intin) {} -X86ISA::IntelMP::LocalIntAssignment * -X86IntelMPLocalIntAssignmentParams::create() const -{ - return new X86ISA::IntelMP::LocalIntAssignment(*this); -} - Addr X86ISA::IntelMP::AddrSpaceMapping::writeOut( PortProxy& proxy, Addr addr, uint8_t &checkSum) @@ -397,12 +355,6 @@ X86ISA::IntelMP::AddrSpaceMapping::AddrSpaceMapping(const Params &p) : addr(p.address), addrLength(p.length) {} -X86ISA::IntelMP::AddrSpaceMapping * -X86IntelMPAddrSpaceMappingParams::create() const -{ - return new X86ISA::IntelMP::AddrSpaceMapping(*this); -} - Addr X86ISA::IntelMP::BusHierarchy::writeOut( PortProxy& proxy, Addr addr, uint8_t &checkSum) @@ -426,12 +378,6 @@ X86ISA::IntelMP::BusHierarchy::BusHierarchy(const Params &p) : info |= 1; } -X86ISA::IntelMP::BusHierarchy * -X86IntelMPBusHierarchyParams::create() const -{ - return new X86ISA::IntelMP::BusHierarchy(*this); -} - Addr X86ISA::IntelMP::CompatAddrSpaceMod::writeOut( PortProxy& proxy, Addr addr, uint8_t &checkSum) @@ -450,9 +396,3 @@ X86ISA::IntelMP::CompatAddrSpaceMod::CompatAddrSpaceMod(const Params &p) : if (p.add) mod |= 1; } - -X86ISA::IntelMP::CompatAddrSpaceMod * -X86IntelMPCompatAddrSpaceModParams::create() const -{ - return new X86ISA::IntelMP::CompatAddrSpaceMod(*this); -} diff --git a/src/arch/x86/bios/smbios.cc b/src/arch/x86/bios/smbios.cc index 53897443b..afe0f152f 100644 --- a/src/arch/x86/bios/smbios.cc +++ b/src/arch/x86/bios/smbios.cc @@ -322,15 +322,3 @@ X86ISA::SMBios::SMBiosTable::writeOut(PortProxy& proxy, Addr addr, intChecksum = -intChecksum; proxy.writeBlob(addr + 0x15, &intChecksum, 1); } - -X86ISA::SMBios::BiosInformation * -X86SMBiosBiosInformationParams::create() const -{ - return new X86ISA::SMBios::BiosInformation(*this); -} - -X86ISA::SMBios::SMBiosTable * -X86SMBiosSMBiosTableParams::create() const -{ - return new X86ISA::SMBios::SMBiosTable(*this); -} diff --git a/src/arch/x86/fs_workload.cc b/src/arch/x86/fs_workload.cc index a69e50b8d..7499e6093 100644 --- a/src/arch/x86/fs_workload.cc +++ b/src/arch/x86/fs_workload.cc @@ -377,9 +377,3 @@ FsWorkload::writeOutMPTable(Addr fp, Addr &fpSize, Addr &tableSize, Addr table) } } // namespace X86ISA - -X86ISA::FsWorkload * -X86FsWorkloadParams::create() const -{ - return new X86ISA::FsWorkload(*this); -} diff --git a/src/arch/x86/interrupts.cc b/src/arch/x86/interrupts.cc index 10a642107..956cd3cba 100644 --- a/src/arch/x86/interrupts.cc +++ b/src/arch/x86/interrupts.cc @@ -773,12 +773,6 @@ X86ISA::Interrupts::unserialize(CheckpointIn &cp) } } -X86ISA::Interrupts * -X86LocalApicParams::create() const -{ - return new X86ISA::Interrupts(*this); -} - void X86ISA::Interrupts::processApicTimerEvent() { diff --git a/src/arch/x86/isa.cc b/src/arch/x86/isa.cc index 86182879a..e4e526e09 100644 --- a/src/arch/x86/isa.cc +++ b/src/arch/x86/isa.cc @@ -435,9 +435,3 @@ ISA::setThreadContext(ThreadContext *_tc) } } - -X86ISA::ISA * -X86ISAParams::create() const -{ - return new X86ISA::ISA(*this); -} diff --git a/src/arch/x86/linux/fs_workload.cc b/src/arch/x86/linux/fs_workload.cc index c73e5b32e..bb9f39fbe 100644 --- a/src/arch/x86/linux/fs_workload.cc +++ b/src/arch/x86/linux/fs_workload.cc @@ -128,9 +128,3 @@ FsLinux::initState() } } // namespace X86ISA - -X86ISA::FsLinux * -X86FsLinuxParams::create() const -{ - return new X86ISA::FsLinux(*this); -} diff --git a/src/arch/x86/linux/se_workload.cc b/src/arch/x86/linux/se_workload.cc index 961dedc18..72170f74a 100644 --- a/src/arch/x86/linux/se_workload.cc +++ b/src/arch/x86/linux/se_workload.cc @@ -169,9 +169,3 @@ EmuLinux::pageFault(ThreadContext *tc) } } // namespace X86ISA - -X86ISA::EmuLinux * -X86EmuLinuxParams::create() const -{ - return new X86ISA::EmuLinux(*this); -} diff --git a/src/arch/x86/mmu.cc b/src/arch/x86/mmu.cc deleted file mode 100644 index 5a06b3d6d..000000000 --- a/src/arch/x86/mmu.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2020 ARM Limited - * All rights reserved - * - * The license below extends only to copyright in the software and shall - * not be construed as granting a license to any other intellectual - * property including but not limited to intellectual property relating - * to a hardware implementation of the functionality of the software - * licensed hereunder. You may use the software subject to the license - * terms below provided that you ensure that this notice is replicated - * unmodified and in its entirety in all distributions of the software, - * modified or unmodified, in source code or in binary form. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer; - * redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution; - * neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "arch/x86/mmu.hh" - -X86ISA::MMU * -X86MMUParams::create() const -{ - return new X86ISA::MMU(*this); -} diff --git a/src/arch/x86/nativetrace.cc b/src/arch/x86/nativetrace.cc index f7277f9bc..904b3eccf 100644 --- a/src/arch/x86/nativetrace.cc +++ b/src/arch/x86/nativetrace.cc @@ -186,13 +186,3 @@ X86NativeTrace::check(NativeTraceRecord *record) } } // namespace Trace - -//////////////////////////////////////////////////////////////////////// -// -// ExeTracer Simulation Object -// -Trace::X86NativeTrace * -X86NativeTraceParams::create() const -{ - return new Trace::X86NativeTrace(*this); -} diff --git a/src/arch/x86/pagetable_walker.cc b/src/arch/x86/pagetable_walker.cc index 943295a5f..4b7b88c18 100644 --- a/src/arch/x86/pagetable_walker.cc +++ b/src/arch/x86/pagetable_walker.cc @@ -736,9 +736,3 @@ Walker::WalkerState::pageFault(bool present) } /* end namespace X86ISA */ } - -X86ISA::Walker * -X86PagetableWalkerParams::create() const -{ - return new X86ISA::Walker(*this); -} diff --git a/src/arch/x86/tlb.cc b/src/arch/x86/tlb.cc index d336eb4ed..045015f92 100644 --- a/src/arch/x86/tlb.cc +++ b/src/arch/x86/tlb.cc @@ -571,9 +571,3 @@ TLB::getTableWalkerPort() } } // namespace X86ISA - -X86ISA::TLB * -X86TLBParams::create() const -{ - return new X86ISA::TLB(*this); -} diff --git a/src/base/filters/block_bloom_filter.cc b/src/base/filters/block_bloom_filter.cc index 7f72c8105..100f19859 100644 --- a/src/base/filters/block_bloom_filter.cc +++ b/src/base/filters/block_bloom_filter.cc @@ -90,10 +90,3 @@ Block::hash(Addr addr) const } } // namespace BloomFilter - -BloomFilter::Block* -BloomFilterBlockParams::create() const -{ - return new BloomFilter::Block(*this); -} - diff --git a/src/base/filters/bulk_bloom_filter.cc b/src/base/filters/bulk_bloom_filter.cc index 0579b3dd7..948769935 100644 --- a/src/base/filters/bulk_bloom_filter.cc +++ b/src/base/filters/bulk_bloom_filter.cc @@ -96,10 +96,3 @@ Bulk::permute(Addr addr) const } } // namespace BloomFilter - -BloomFilter::Bulk* -BloomFilterBulkParams::create() const -{ - return new BloomFilter::Bulk(*this); -} - diff --git a/src/base/filters/h3_bloom_filter.cc b/src/base/filters/h3_bloom_filter.cc index 902787310..dabd0685d 100644 --- a/src/base/filters/h3_bloom_filter.cc +++ b/src/base/filters/h3_bloom_filter.cc @@ -390,10 +390,3 @@ H3::hash(Addr addr, int hash_number) const } } // namespace BloomFilter - -BloomFilter::H3* -BloomFilterH3Params::create() const -{ - return new BloomFilter::H3(*this); -} - diff --git a/src/base/filters/multi_bit_sel_bloom_filter.cc b/src/base/filters/multi_bit_sel_bloom_filter.cc index 7bd308481..34208e8c7 100644 --- a/src/base/filters/multi_bit_sel_bloom_filter.cc +++ b/src/base/filters/multi_bit_sel_bloom_filter.cc @@ -95,9 +95,3 @@ MultiBitSel::hash(Addr addr, int hash_number) const } // namespace BloomFilter -BloomFilter::MultiBitSel* -BloomFilterMultiBitSelParams::create() const -{ - return new BloomFilter::MultiBitSel(*this); -} - diff --git a/src/base/filters/multi_bloom_filter.cc b/src/base/filters/multi_bloom_filter.cc index 04fba3ddc..728b7d50c 100644 --- a/src/base/filters/multi_bloom_filter.cc +++ b/src/base/filters/multi_bloom_filter.cc @@ -110,10 +110,3 @@ Multi::getTotalCount() const } } // namespace BloomFilter - -BloomFilter::Multi* -BloomFilterMultiParams::create() const -{ - return new BloomFilter::Multi(*this); -} - diff --git a/src/base/filters/perfect_bloom_filter.cc b/src/base/filters/perfect_bloom_filter.cc index 00ec92da7..6cac44ee3 100644 --- a/src/base/filters/perfect_bloom_filter.cc +++ b/src/base/filters/perfect_bloom_filter.cc @@ -79,10 +79,3 @@ Perfect::getTotalCount() const } } // namespace BloomFilter - -BloomFilter::Perfect* -BloomFilterPerfectParams::create() const -{ - return new BloomFilter::Perfect(*this); -} - diff --git a/src/base/vnc/vncinput.cc b/src/base/vnc/vncinput.cc index 34349ff5c..a4bedafb0 100644 --- a/src/base/vnc/vncinput.cc +++ b/src/base/vnc/vncinput.cc @@ -133,10 +133,3 @@ VncInput::captureFrameBuffer() ++captureCurrentFrame; } - -// create the VNC Replayer object -VncInput * -VncInputParams::create() const -{ - return new VncInput(*this); -} diff --git a/src/base/vnc/vncserver.cc b/src/base/vnc/vncserver.cc index e72b77146..983a34375 100644 --- a/src/base/vnc/vncserver.cc +++ b/src/base/vnc/vncserver.cc @@ -729,11 +729,3 @@ VncServer::frameBufferResized() detach(); } } - -// create the VNC server object -VncServer * -VncServerParams::create() const -{ - return new VncServer(*this); -} - diff --git a/src/cpu/SConscript b/src/cpu/SConscript index 194631a17..391d59247 100644 --- a/src/cpu/SConscript +++ b/src/cpu/SConscript @@ -119,5 +119,4 @@ Source('timing_expr.cc') SimObject('DummyChecker.py') SimObject('StaticInstFlags.py') Source('checker/cpu.cc') -Source('dummy_checker.cc') DebugFlag('Checker') diff --git a/src/cpu/dummy_checker.cc b/src/cpu/dummy_checker.cc deleted file mode 100644 index 890bd3434..000000000 --- a/src/cpu/dummy_checker.cc +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2011, 2019 ARM Limited - * All rights reserved - * - * The license below extends only to copyright in the software and shall - * not be construed as granting a license to any other intellectual - * property including but not limited to intellectual property relating - * to a hardware implementation of the functionality of the software - * licensed hereunder. You may use the software subject to the license - * terms below provided that you ensure that this notice is replicated - * unmodified and in its entirety in all distributions of the software, - * modified or unmodified, in source code or in binary form. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer; - * redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution; - * neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "cpu/dummy_checker.hh" - -#include "params/DummyChecker.hh" - -DummyChecker * -DummyCheckerParams::create() const -{ - // The checker should check all instructions executed by the main - // cpu and therefore any parameters for early exit don't make much - // sense. - fatal_if(max_insts_any_thread || max_insts_all_threads || - progress_interval, "Invalid checker parameters"); - - return new DummyChecker(*this); -} diff --git a/src/cpu/dummy_checker.hh b/src/cpu/dummy_checker.hh index 0a144995b..37d31afd7 100644 --- a/src/cpu/dummy_checker.hh +++ b/src/cpu/dummy_checker.hh @@ -39,6 +39,7 @@ #define __CPU_DUMMY_CHECKER_HH__ #include "cpu/checker/cpu.hh" +#include "params/DummyChecker.hh" /** * Specific non-templated derived class used for SimObject configuration. @@ -46,9 +47,15 @@ class DummyChecker : public CheckerCPU { public: - DummyChecker(const Params &p) - : CheckerCPU(p) - { } + DummyChecker(const Params &p) : CheckerCPU(p) + { + // The checker should check all instructions executed by the main + // cpu and therefore any parameters for early exit don't make much + // sense. + fatal_if(p.max_insts_any_thread || p.max_insts_all_threads || + p.progress_interval, "Invalid checker parameters"); + + } }; #endif // __CPU_DUMMY_CHECKER_HH__ diff --git a/src/cpu/exetrace.cc b/src/cpu/exetrace.cc index 132a876bf..4980c917e 100644 --- a/src/cpu/exetrace.cc +++ b/src/cpu/exetrace.cc @@ -199,13 +199,3 @@ Trace::ExeTracerRecord::dump() } } // namespace Trace - -//////////////////////////////////////////////////////////////////////// -// -// ExeTracer Simulation Object -// -Trace::ExeTracer * -ExeTracerParams::create() const -{ - return new Trace::ExeTracer(*this); -} diff --git a/src/cpu/func_unit.cc b/src/cpu/func_unit.cc index 087fcb7ce..d131d7675 100644 --- a/src/cpu/func_unit.cc +++ b/src/cpu/func_unit.cc @@ -95,38 +95,3 @@ FuncUnit::isPipelined(OpClass capability) { return pipelined[capability]; } - -//////////////////////////////////////////////////////////////////////////// -// -// The SimObjects we use to get the FU information into the simulator -// -//////////////////////////////////////////////////////////////////////////// - -// -// We use 2 objects to specify this data in the INI file: -// (1) OpDesc - Describes the operation class & latencies -// (multiple OpDesc objects can refer to the same -// operation classes) -// (2) FUDesc - Describes the operations available in the unit & -// the number of these units -// -// - - -// -// The operation-class description object -// -OpDesc * -OpDescParams::create() const -{ - return new OpDesc(*this); -} - -// -// The FuDesc object -// -FUDesc * -FUDescParams::create() const -{ - return new FUDesc(*this); -} diff --git a/src/cpu/func_unit.hh b/src/cpu/func_unit.hh index 235a08c13..42bf0fe98 100644 --- a/src/cpu/func_unit.hh +++ b/src/cpu/func_unit.hh @@ -39,6 +39,22 @@ #include "params/OpDesc.hh" #include "sim/sim_object.hh" +//////////////////////////////////////////////////////////////////////////// +// +// The SimObjects we use to get the FU information into the simulator +// +//////////////////////////////////////////////////////////////////////////// + +// +// We use 2 objects to specify this data in the INI file: +// (1) OpDesc - Describes the operation class & latencies +// (multiple OpDesc objects can refer to the same +// operation classes) +// (2) FUDesc - Describes the operations available in the unit & +// the number of these units +// +// + //////////////////////////////////////////////////////////////////////////// // // Structures used ONLY during the initialization phase... diff --git a/src/cpu/inst_pb_trace.cc b/src/cpu/inst_pb_trace.cc index 1bfd21633..f4a40f8ae 100644 --- a/src/cpu/inst_pb_trace.cc +++ b/src/cpu/inst_pb_trace.cc @@ -174,11 +174,3 @@ InstPBTrace::traceMem(StaticInstPtr si, Addr a, Addr s, unsigned f) } } // namespace Trace - - -Trace::InstPBTrace* -InstPBTraceParams::create() const -{ - return new Trace::InstPBTrace(*this); -} - diff --git a/src/cpu/inteltrace.cc b/src/cpu/inteltrace.cc index 805851f53..68da26196 100644 --- a/src/cpu/inteltrace.cc +++ b/src/cpu/inteltrace.cc @@ -54,13 +54,3 @@ Trace::IntelTraceRecord::dump() } } // namespace Trace - -//////////////////////////////////////////////////////////////////////// -// -// ExeTracer Simulation Object -// -Trace::IntelTrace * -IntelTraceParams::create() const -{ - return new Trace::IntelTrace(*this); -} diff --git a/src/cpu/intr_control.cc b/src/cpu/intr_control.cc index b6a00ded6..b62483594 100644 --- a/src/cpu/intr_control.cc +++ b/src/cpu/intr_control.cc @@ -74,9 +74,3 @@ IntrControl::havePosted(int cpu_id) const auto *tc = sys->threads[cpu_id]; return tc->getCpuPtr()->checkInterrupts(tc->threadId()); } - -IntrControl * -IntrControlParams::create() const -{ - return new IntrControl(*this); -} diff --git a/src/cpu/intr_control_noisa.cc b/src/cpu/intr_control_noisa.cc index 5180e4458..998641c73 100644 --- a/src/cpu/intr_control_noisa.cc +++ b/src/cpu/intr_control_noisa.cc @@ -43,9 +43,3 @@ void IntrControl::clear(int cpu_id, int int_num, int index) { } - -IntrControl * -IntrControlParams::create() const -{ - return new IntrControl(*this); -} diff --git a/src/cpu/kvm/vm.cc b/src/cpu/kvm/vm.cc index 1ad09e6a0..e0a500c54 100644 --- a/src/cpu/kvm/vm.cc +++ b/src/cpu/kvm/vm.cc @@ -64,6 +64,12 @@ Kvm *Kvm::instance = NULL; Kvm::Kvm() : kvmFD(-1), apiVersion(-1), vcpuMMapSize(0) { + static bool created = false; + if (created) + warn_once("Use of multiple KvmVMs is currently untested!"); + + created = true; + kvmFD = ::open("/dev/kvm", O_RDWR); if (kvmFD == -1) fatal("KVM: Failed to open /dev/kvm\n"); @@ -579,16 +585,3 @@ KvmVM::ioctl(int request, long p1) const return ::ioctl(vmFD, request, p1); } - - -KvmVM * -KvmVMParams::create() const -{ - static bool created = false; - if (created) - warn_once("Use of multiple KvmVMs is currently untested!\n"); - - created = true; - - return new KvmVM(*this); -} diff --git a/src/cpu/kvm/x86_cpu.cc b/src/cpu/kvm/x86_cpu.cc index 0d3aa26b0..4a7d21bc9 100644 --- a/src/cpu/kvm/x86_cpu.cc +++ b/src/cpu/kvm/x86_cpu.cc @@ -1621,9 +1621,3 @@ X86KvmCPU::setVCpuEvents(const struct kvm_vcpu_events &events) if (ioctl(KVM_SET_VCPU_EVENTS, (void *)&events) == -1) panic("KVM: Failed to set guest debug registers\n"); } - -X86KvmCPU * -X86KvmCPUParams::create() const -{ - return new X86KvmCPU(*this); -} diff --git a/src/cpu/minor/cpu.cc b/src/cpu/minor/cpu.cc index 2fde17d82..18a3feed9 100644 --- a/src/cpu/minor/cpu.cc +++ b/src/cpu/minor/cpu.cc @@ -291,12 +291,6 @@ MinorCPU::wakeupOnEvent(unsigned int stage_id) pipeline->start(); } -MinorCPU * -MinorCPUParams::create() const -{ - return new MinorCPU(*this); -} - Port & MinorCPU::getInstPort() { diff --git a/src/cpu/minor/func_unit.cc b/src/cpu/minor/func_unit.cc index ffe7f329a..a7ccc08fb 100644 --- a/src/cpu/minor/func_unit.cc +++ b/src/cpu/minor/func_unit.cc @@ -44,36 +44,6 @@ #include "debug/MinorTiming.hh" #include "enums/OpClass.hh" -MinorOpClass * -MinorOpClassParams::create() const -{ - return new MinorOpClass(*this); -} - -MinorOpClassSet * -MinorOpClassSetParams::create() const -{ - return new MinorOpClassSet(*this); -} - -MinorFUTiming * -MinorFUTimingParams::create() const -{ - return new MinorFUTiming(*this); -} - -MinorFU * -MinorFUParams::create() const -{ - return new MinorFU(*this); -} - -MinorFUPool * -MinorFUPoolParams::create() const -{ - return new MinorFUPool(*this); -} - MinorOpClassSet::MinorOpClassSet(const MinorOpClassSetParams ¶ms) : SimObject(params), opClasses(params.opClasses), diff --git a/src/cpu/o3/SConscript b/src/cpu/o3/SConscript index 3966f972f..f43ec643d 100755 --- a/src/cpu/o3/SConscript +++ b/src/cpu/o3/SConscript @@ -38,7 +38,6 @@ if 'O3CPU' in env['CPU_MODELS']: Source('base_dyn_inst.cc') Source('commit.cc') Source('cpu.cc') - Source('deriv.cc') Source('decode.cc') Source('dyn_inst.cc') Source('fetch.cc') diff --git a/src/cpu/o3/checker.cc b/src/cpu/o3/checker.cc index 7613e0861..ff498edab 100644 --- a/src/cpu/o3/checker.cc +++ b/src/cpu/o3/checker.cc @@ -41,19 +41,6 @@ #include "cpu/o3/checker.hh" #include "cpu/checker/cpu_impl.hh" -#include "params/O3Checker.hh" template class Checker; - -O3Checker * -O3CheckerParams::create() const -{ - // The checker should check all instructions executed by the main - // cpu and therefore any parameters for early exit don't make much - // sense. - fatal_if(max_insts_any_thread || max_insts_all_threads || - progress_interval, "Invalid checker parameters"); - - return new O3Checker(*this); -} diff --git a/src/cpu/o3/checker.hh b/src/cpu/o3/checker.hh index 8751a184e..0c7d6294a 100644 --- a/src/cpu/o3/checker.hh +++ b/src/cpu/o3/checker.hh @@ -51,7 +51,14 @@ class O3Checker : public Checker { public: - O3Checker(const Params &p) : Checker(p) {} + O3Checker(const Params &p) : Checker(p) + { + // The checker should check all instructions executed by the main + // cpu and therefore any parameters for early exit don't make much + // sense. + fatal_if(p.max_insts_any_thread || p.max_insts_all_threads || + p.progress_interval, "Invalid checker parameters"); + } }; #endif // __CPU_O3_CHECKER_HH__ diff --git a/src/cpu/o3/deriv.cc b/src/cpu/o3/deriv.cc deleted file mode 100644 index dbcd34eb5..000000000 --- a/src/cpu/o3/deriv.cc +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2004-2006 The Regents of The University of Michigan - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer; - * redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution; - * neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "cpu/o3/deriv.hh" - -#include - -#include "params/DerivO3CPU.hh" - -DerivO3CPU * -DerivO3CPUParams::create() const -{ - return new DerivO3CPU(*this); -} diff --git a/src/cpu/o3/fu_pool.cc b/src/cpu/o3/fu_pool.cc index 7c4b44d69..caab18147 100644 --- a/src/cpu/o3/fu_pool.cc +++ b/src/cpu/o3/fu_pool.cc @@ -245,24 +245,3 @@ FUPool::isDrained() const return is_drained; } - -// - -//////////////////////////////////////////////////////////////////////////// -// -// The SimObjects we use to get the FU information into the simulator -// -//////////////////////////////////////////////////////////////////////////// - -// -// FUPool - Contails a list of FUDesc objects to make available -// - -// -// The FuPool object -// -FUPool * -FUPoolParams::create() const -{ - return new FUPool(*this); -} diff --git a/src/cpu/o3/probe/elastic_trace.cc b/src/cpu/o3/probe/elastic_trace.cc index 0f7e9b50b..aee97bd98 100644 --- a/src/cpu/o3/probe/elastic_trace.cc +++ b/src/cpu/o3/probe/elastic_trace.cc @@ -919,9 +919,3 @@ ElasticTrace::flushTraces() delete dataTraceStream; delete instTraceStream; } - -ElasticTrace* -ElasticTraceParams::create() const -{ - return new ElasticTrace(*this); -} diff --git a/src/cpu/o3/probe/simple_trace.cc b/src/cpu/o3/probe/simple_trace.cc index 9891cf28a..cc4cceaa6 100644 --- a/src/cpu/o3/probe/simple_trace.cc +++ b/src/cpu/o3/probe/simple_trace.cc @@ -63,9 +63,3 @@ void SimpleTrace::regProbeListeners() listeners.push_back(new DynInstListener(this, "Fetch", &SimpleTrace::traceFetch)); } - -SimpleTrace* -SimpleTraceParams::create() const -{ - return new SimpleTrace(*this); -} diff --git a/src/cpu/pred/2bit_local.cc b/src/cpu/pred/2bit_local.cc index 5f076673a..5e5e54fbc 100644 --- a/src/cpu/pred/2bit_local.cc +++ b/src/cpu/pred/2bit_local.cc @@ -133,9 +133,3 @@ void LocalBP::uncondBranch(ThreadID tid, Addr pc, void *&bp_history) { } - -LocalBP* -LocalBPParams::create() const -{ - return new LocalBP(*this); -} diff --git a/src/cpu/pred/bi_mode.cc b/src/cpu/pred/bi_mode.cc index 4d435a82f..de22e3f8b 100644 --- a/src/cpu/pred/bi_mode.cc +++ b/src/cpu/pred/bi_mode.cc @@ -225,9 +225,3 @@ BiModeBP::updateGlobalHistReg(ThreadID tid, bool taken) (globalHistoryReg[tid] << 1); globalHistoryReg[tid] &= historyRegisterMask; } - -BiModeBP* -BiModeBPParams::create() const -{ - return new BiModeBP(*this); -} diff --git a/src/cpu/pred/loop_predictor.cc b/src/cpu/pred/loop_predictor.cc index af3b521f0..884ef6e41 100644 --- a/src/cpu/pred/loop_predictor.cc +++ b/src/cpu/pred/loop_predictor.cc @@ -362,9 +362,3 @@ LoopPredictor::getSizeInBits() const loopTableConfidenceBits + loopTableTagBits + loopTableAgeBits + useDirectionBit); } - -LoopPredictor * -LoopPredictorParams::create() const -{ - return new LoopPredictor(*this); -} diff --git a/src/cpu/pred/ltage.cc b/src/cpu/pred/ltage.cc index e770336d0..41fad855c 100644 --- a/src/cpu/pred/ltage.cc +++ b/src/cpu/pred/ltage.cc @@ -146,9 +146,3 @@ LTAGE::regStats() { TAGE::regStats(); } - -LTAGE* -LTAGEParams::create() const -{ - return new LTAGE(*this); -} diff --git a/src/cpu/pred/multiperspective_perceptron_64KB.cc b/src/cpu/pred/multiperspective_perceptron_64KB.cc index ba45232ba..035d8bdee 100644 --- a/src/cpu/pred/multiperspective_perceptron_64KB.cc +++ b/src/cpu/pred/multiperspective_perceptron_64KB.cc @@ -85,9 +85,3 @@ MultiperspectivePerceptron64KB::createSpecs() { addSpec(new SGHISTPATH(1, 2, 5, 1.25, 768, 6, *this)); addSpec(new SGHISTPATH(1, 5, 2, 1.3125, 972, 6, *this)); } - -MultiperspectivePerceptron64KB* -MultiperspectivePerceptron64KBParams::create() const -{ - return new MultiperspectivePerceptron64KB(*this); -} diff --git a/src/cpu/pred/multiperspective_perceptron_8KB.cc b/src/cpu/pred/multiperspective_perceptron_8KB.cc index 7279957ad..a4abe5232 100644 --- a/src/cpu/pred/multiperspective_perceptron_8KB.cc +++ b/src/cpu/pred/multiperspective_perceptron_8KB.cc @@ -64,9 +64,3 @@ MultiperspectivePerceptron8KB::createSpecs() { addSpec(new SGHISTPATH(0, 4, 3, 1.65625, 0, 6, *this)); addSpec(new SGHISTPATH(1, 2, 5, 2.53125, 0, 5, *this)); } - - MultiperspectivePerceptron8KB* -MultiperspectivePerceptron8KBParams::create() const -{ - return new MultiperspectivePerceptron8KB(*this); -} diff --git a/src/cpu/pred/multiperspective_perceptron_tage.cc b/src/cpu/pred/multiperspective_perceptron_tage.cc index 3f1803d85..8068c3d7a 100644 --- a/src/cpu/pred/multiperspective_perceptron_tage.cc +++ b/src/cpu/pred/multiperspective_perceptron_tage.cc @@ -242,12 +242,6 @@ MPP_TAGE::isHighConfidence(TAGEBase::BranchInfo *bi) const } -MPP_TAGE* -MPP_TAGEParams::create() const -{ - return new MPP_TAGE(*this); -} - bool MPP_LoopPredictor::calcConf(int index) const { @@ -261,12 +255,6 @@ MPP_LoopPredictor::optionalAgeInc() const return ((random_mt.random() & 7) == 0); } -MPP_LoopPredictor* -MPP_LoopPredictorParams::create() const -{ - return new MPP_LoopPredictor(*this); -} - MPP_StatisticalCorrector::MPP_StatisticalCorrector( const MPP_StatisticalCorrectorParams &p) : StatisticalCorrector(p), thirdH(0), pnb(p.pnb), logPnb(p.logPnb), pm(p.pm), gnb(p.gnb), diff --git a/src/cpu/pred/multiperspective_perceptron_tage_64KB.cc b/src/cpu/pred/multiperspective_perceptron_tage_64KB.cc index 8d4d40099..68ecd9e96 100644 --- a/src/cpu/pred/multiperspective_perceptron_tage_64KB.cc +++ b/src/cpu/pred/multiperspective_perceptron_tage_64KB.cc @@ -196,13 +196,6 @@ MPP_StatisticalCorrector_64KB::getSizeInBits() const return bits; } -MPP_StatisticalCorrector_64KB* -MPP_StatisticalCorrector_64KBParams::create() const -{ - return new MPP_StatisticalCorrector_64KB(*this); -} - - MultiperspectivePerceptronTAGE64KB::MultiperspectivePerceptronTAGE64KB( const MultiperspectivePerceptronTAGE64KBParams &p) : MultiperspectivePerceptronTAGE(p) @@ -222,9 +215,3 @@ MultiperspectivePerceptronTAGE64KB::createSpecs() addSpec(new RECENCY(9, 3, -1, 2.51, 0, 6, *this)); addSpec(new ACYCLIC(12, -1, -1, 2.0, 0, 6, *this)); } - -MultiperspectivePerceptronTAGE64KB* -MultiperspectivePerceptronTAGE64KBParams::create() const -{ - return new MultiperspectivePerceptronTAGE64KB(*this); -} diff --git a/src/cpu/pred/multiperspective_perceptron_tage_8KB.cc b/src/cpu/pred/multiperspective_perceptron_tage_8KB.cc index e7c8ad5d5..f02a8bfe2 100644 --- a/src/cpu/pred/multiperspective_perceptron_tage_8KB.cc +++ b/src/cpu/pred/multiperspective_perceptron_tage_8KB.cc @@ -39,18 +39,6 @@ #include "cpu/pred/multiperspective_perceptron_tage_8KB.hh" -MPP_TAGE_8KB* -MPP_TAGE_8KBParams::create() const -{ - return new MPP_TAGE_8KB(*this); -} - -MPP_LoopPredictor_8KB* -MPP_LoopPredictor_8KBParams::create() const -{ - return new MPP_LoopPredictor_8KB(*this); -} - MPP_StatisticalCorrector_8KB::MPP_StatisticalCorrector_8KB( const MPP_StatisticalCorrector_8KBParams &p) : MPP_StatisticalCorrector(p) @@ -167,12 +155,6 @@ MPP_StatisticalCorrector_8KB::getSizeInBits() const return bits; } -MPP_StatisticalCorrector_8KB* -MPP_StatisticalCorrector_8KBParams::create() const -{ - return new MPP_StatisticalCorrector_8KB(*this); -} - MultiperspectivePerceptronTAGE8KB::MultiperspectivePerceptronTAGE8KB( const MultiperspectivePerceptronTAGE8KBParams &p) : MultiperspectivePerceptronTAGE(p) @@ -188,9 +170,3 @@ MultiperspectivePerceptronTAGE8KB::createSpecs() addSpec(new IMLI(1, 2.23, 0, 6, *this)); addSpec(new IMLI(4, 1.98, 0, 6, *this)); } - -MultiperspectivePerceptronTAGE8KB* -MultiperspectivePerceptronTAGE8KBParams::create() const -{ - return new MultiperspectivePerceptronTAGE8KB(*this); -} diff --git a/src/cpu/pred/simple_indirect.cc b/src/cpu/pred/simple_indirect.cc index 5faab86ad..6000f90d5 100644 --- a/src/cpu/pred/simple_indirect.cc +++ b/src/cpu/pred/simple_indirect.cc @@ -233,9 +233,3 @@ SimpleIndirectPredictor::getTag(Addr br_addr) { return (br_addr >> instShift) & ((0x1<(bp_history); tage->updateHistories(tid, br_pc, true, bi->tageBranchInfo, true); } - -TAGE* -TAGEParams::create() const -{ - return new TAGE(*this); -} diff --git a/src/cpu/pred/tage_base.cc b/src/cpu/pred/tage_base.cc index d788ada51..9a436aed1 100644 --- a/src/cpu/pred/tage_base.cc +++ b/src/cpu/pred/tage_base.cc @@ -790,9 +790,3 @@ TAGEBase::getSizeInBits() const { bits += logUResetPeriod; return bits; } - -TAGEBase* -TAGEBaseParams::create() const -{ - return new TAGEBase(*this); -} diff --git a/src/cpu/pred/tage_sc_l.cc b/src/cpu/pred/tage_sc_l.cc index 18fe98397..01171cbb6 100644 --- a/src/cpu/pred/tage_sc_l.cc +++ b/src/cpu/pred/tage_sc_l.cc @@ -58,12 +58,6 @@ TAGE_SC_L_LoopPredictor::optionalAgeInc() const return (random_mt.random() & 7) == 0; } -TAGE_SC_L_LoopPredictor * -TAGE_SC_L_LoopPredictorParams::create() const -{ - return new TAGE_SC_L_LoopPredictor(*this); -} - TAGE_SC_L::TAGE_SC_L(const TAGE_SC_LParams &p) : LTAGE(p), statisticalCorrector(p.statistical_corrector) { diff --git a/src/cpu/pred/tage_sc_l_64KB.cc b/src/cpu/pred/tage_sc_l_64KB.cc index 2d71394ad..f7a5eaca4 100644 --- a/src/cpu/pred/tage_sc_l_64KB.cc +++ b/src/cpu/pred/tage_sc_l_64KB.cc @@ -190,12 +190,6 @@ TAGE_SC_L_64KB_StatisticalCorrector::gUpdates(ThreadID tid, Addr pc, igehl, inb, logInb, wi, bi); } -TAGE_SC_L_64KB_StatisticalCorrector* -TAGE_SC_L_64KB_StatisticalCorrectorParams::create() const -{ - return new TAGE_SC_L_64KB_StatisticalCorrector(*this); -} - int TAGE_SC_L_TAGE_64KB::gindex_ext(int index, int bank) const { @@ -309,19 +303,7 @@ TAGE_SC_L_TAGE_64KB::handleTAGEUpdate(Addr branch_pc, bool taken, } } -TAGE_SC_L_TAGE_64KB* -TAGE_SC_L_TAGE_64KBParams::create() const -{ - return new TAGE_SC_L_TAGE_64KB(*this); -} - TAGE_SC_L_64KB::TAGE_SC_L_64KB(const TAGE_SC_L_64KBParams ¶ms) : TAGE_SC_L(params) { } - -TAGE_SC_L_64KB* -TAGE_SC_L_64KBParams::create() const -{ - return new TAGE_SC_L_64KB(*this); -} diff --git a/src/cpu/pred/tage_sc_l_8KB.cc b/src/cpu/pred/tage_sc_l_8KB.cc index ec5571a8b..dc48ccee3 100644 --- a/src/cpu/pred/tage_sc_l_8KB.cc +++ b/src/cpu/pred/tage_sc_l_8KB.cc @@ -132,12 +132,6 @@ TAGE_SC_L_8KB_StatisticalCorrector::gUpdates(ThreadID tid, Addr pc, bool taken, gUpdate(pc, taken, sh->imliCount, im, igehl, inb, logInb, wi, bi); } -TAGE_SC_L_8KB_StatisticalCorrector* -TAGE_SC_L_8KB_StatisticalCorrectorParams::create() const -{ - return new TAGE_SC_L_8KB_StatisticalCorrector(*this); -} - TAGE_SC_L_8KB::TAGE_SC_L_8KB(const TAGE_SC_L_8KBParams ¶ms) : TAGE_SC_L(params) { @@ -316,15 +310,3 @@ TAGE_SC_L_TAGE_8KB::handleTAGEUpdate(Addr branch_pc, bool taken, gtable[bi->hitBank][bi->hitBankIndex].u++; } } - -TAGE_SC_L_TAGE_8KB* -TAGE_SC_L_TAGE_8KBParams::create() const -{ - return new TAGE_SC_L_TAGE_8KB(*this); -} - -TAGE_SC_L_8KB* -TAGE_SC_L_8KBParams::create() const -{ - return new TAGE_SC_L_8KB(*this); -} diff --git a/src/cpu/pred/tournament.cc b/src/cpu/pred/tournament.cc index 1eb15c225..b50b6c79e 100644 --- a/src/cpu/pred/tournament.cc +++ b/src/cpu/pred/tournament.cc @@ -343,12 +343,6 @@ TournamentBP::squash(ThreadID tid, void *bp_history) delete history; } -TournamentBP* -TournamentBPParams::create() const -{ - return new TournamentBP(*this); -} - #ifdef DEBUG int TournamentBP::BPHistory::newCount = 0; diff --git a/src/cpu/simple/atomic.cc b/src/cpu/simple/atomic.cc index d7df3c869..70162c901 100644 --- a/src/cpu/simple/atomic.cc +++ b/src/cpu/simple/atomic.cc @@ -771,13 +771,3 @@ AtomicSimpleCPU::printAddr(Addr a) { dcachePort.printAddr(a); } - -//////////////////////////////////////////////////////////////////////// -// -// AtomicSimpleCPU Simulation Object -// -AtomicSimpleCPU * -AtomicSimpleCPUParams::create() const -{ - return new AtomicSimpleCPU(*this); -} diff --git a/src/cpu/simple/noncaching.cc b/src/cpu/simple/noncaching.cc index 9ab30d192..44d57fb94 100644 --- a/src/cpu/simple/noncaching.cc +++ b/src/cpu/simple/noncaching.cc @@ -42,6 +42,9 @@ NonCachingSimpleCPU::NonCachingSimpleCPU(const NonCachingSimpleCPUParams &p) : AtomicSimpleCPU(p) { + assert(p.numThreads == 1); + fatal_if(!FullSystem && p.workload.size() != 1, + "only one workload allowed"); } void @@ -63,12 +66,3 @@ NonCachingSimpleCPU::sendPacket(RequestPort &port, const PacketPtr &pkt) return port.sendAtomic(pkt); } } - -NonCachingSimpleCPU * -NonCachingSimpleCPUParams::create() const -{ - assert(numThreads == 1); - if (!FullSystem && workload.size() != 1) - fatal("only one workload allowed"); - return new NonCachingSimpleCPU(*this); -} diff --git a/src/cpu/simple/probes/simpoint.cc b/src/cpu/simple/probes/simpoint.cc index c4193a3c9..d835b2b99 100644 --- a/src/cpu/simple/probes/simpoint.cc +++ b/src/cpu/simple/probes/simpoint.cc @@ -138,10 +138,3 @@ SimPoint::profile(const std::pair& p) } } } - -/** SimPoint SimObject */ -SimPoint* -SimPointParams::create() const -{ - return new SimPoint(*this); -} diff --git a/src/cpu/simple/timing.cc b/src/cpu/simple/timing.cc index 30637a240..9c529b403 100644 --- a/src/cpu/simple/timing.cc +++ b/src/cpu/simple/timing.cc @@ -1290,14 +1290,3 @@ TimingSimpleCPU::htmSendAbortSignal(HtmFailureFaultCause cause) sendData(req, data, nullptr, true); } - - -//////////////////////////////////////////////////////////////////////// -// -// TimingSimpleCPU Simulation Object -// -TimingSimpleCPU * -TimingSimpleCPUParams::create() const -{ - return new TimingSimpleCPU(*this); -} diff --git a/src/cpu/testers/directedtest/InvalidateGenerator.cc b/src/cpu/testers/directedtest/InvalidateGenerator.cc index 400150119..e55a731e1 100644 --- a/src/cpu/testers/directedtest/InvalidateGenerator.cc +++ b/src/cpu/testers/directedtest/InvalidateGenerator.cc @@ -133,9 +133,3 @@ InvalidateGenerator::performCallback(uint32_t proc, Addr address) } } - -InvalidateGenerator * -InvalidateGeneratorParams::create() const -{ - return new InvalidateGenerator(*this); -} diff --git a/src/cpu/testers/directedtest/RubyDirectedTester.cc b/src/cpu/testers/directedtest/RubyDirectedTester.cc index 74a809d97..455a9863b 100644 --- a/src/cpu/testers/directedtest/RubyDirectedTester.cc +++ b/src/cpu/testers/directedtest/RubyDirectedTester.cc @@ -136,9 +136,3 @@ RubyDirectedTester::wakeup() exitSimLoop("Ruby DirectedTester completed"); } } - -RubyDirectedTester * -RubyDirectedTesterParams::create() const -{ - return new RubyDirectedTester(*this); -} diff --git a/src/cpu/testers/directedtest/SeriesRequestGenerator.cc b/src/cpu/testers/directedtest/SeriesRequestGenerator.cc index bf32bf1f9..5704ea09a 100644 --- a/src/cpu/testers/directedtest/SeriesRequestGenerator.cc +++ b/src/cpu/testers/directedtest/SeriesRequestGenerator.cc @@ -108,9 +108,3 @@ SeriesRequestGenerator::performCallback(uint32_t proc, Addr address) m_active_node = 0; } } - -SeriesRequestGenerator * -SeriesRequestGeneratorParams::create() const -{ - return new SeriesRequestGenerator(*this); -} diff --git a/src/cpu/testers/garnet_synthetic_traffic/GarnetSyntheticTraffic.cc b/src/cpu/testers/garnet_synthetic_traffic/GarnetSyntheticTraffic.cc index 03ed862de..b4f3511d4 100644 --- a/src/cpu/testers/garnet_synthetic_traffic/GarnetSyntheticTraffic.cc +++ b/src/cpu/testers/garnet_synthetic_traffic/GarnetSyntheticTraffic.cc @@ -348,10 +348,3 @@ GarnetSyntheticTraffic::printAddr(Addr a) { cachePort.printAddr(a); } - - -GarnetSyntheticTraffic * -GarnetSyntheticTrafficParams::create() const -{ - return new GarnetSyntheticTraffic(*this); -} diff --git a/src/cpu/testers/memtest/memtest.cc b/src/cpu/testers/memtest/memtest.cc index 99cefb771..d2002a28f 100644 --- a/src/cpu/testers/memtest/memtest.cc +++ b/src/cpu/testers/memtest/memtest.cc @@ -321,9 +321,3 @@ MemTest::recvRetry() reschedule(noRequestEvent, clockEdge(progressCheck), true); } } - -MemTest * -MemTestParams::create() const -{ - return new MemTest(*this); -} diff --git a/src/cpu/testers/rubytest/RubyTester.cc b/src/cpu/testers/rubytest/RubyTester.cc index de715a867..9209b172d 100644 --- a/src/cpu/testers/rubytest/RubyTester.cc +++ b/src/cpu/testers/rubytest/RubyTester.cc @@ -278,9 +278,3 @@ RubyTester::print(std::ostream& out) const { out << "[RubyTester]" << std::endl; } - -RubyTester * -RubyTesterParams::create() const -{ - return new RubyTester(*this); -} diff --git a/src/cpu/testers/traffic_gen/pygen.cc b/src/cpu/testers/traffic_gen/pygen.cc index 0d5e88026..52ceddb57 100644 --- a/src/cpu/testers/traffic_gen/pygen.cc +++ b/src/cpu/testers/traffic_gen/pygen.cc @@ -90,9 +90,3 @@ pybind_init_tracers(py::module &m_native) static EmbeddedPyBind _py_tracers("trace", pybind_init_tracers); -PyTrafficGen* -PyTrafficGenParams::create() const -{ - return new PyTrafficGen(*this); -} - diff --git a/src/cpu/testers/traffic_gen/traffic_gen.cc b/src/cpu/testers/traffic_gen/traffic_gen.cc index 0d7ea9d30..500566555 100644 --- a/src/cpu/testers/traffic_gen/traffic_gen.cc +++ b/src/cpu/testers/traffic_gen/traffic_gen.cc @@ -58,12 +58,6 @@ TrafficGen::TrafficGen(const TrafficGenParams &p) { } -TrafficGen* -TrafficGenParams::create() const -{ - return new TrafficGen(*this); -} - void TrafficGen::init() { diff --git a/src/cpu/timing_expr.cc b/src/cpu/timing_expr.cc index 9938c0cce..5a13b1b0f 100644 --- a/src/cpu/timing_expr.cc +++ b/src/cpu/timing_expr.cc @@ -197,51 +197,3 @@ uint64_t TimingExprIf::eval(TimingExprEvalContext &context) else return falseExpr->eval(context); } - -TimingExprLiteral * -TimingExprLiteralParams::create() const -{ - return new TimingExprLiteral(*this); -} - -TimingExprSrcReg * -TimingExprSrcRegParams::create() const -{ - return new TimingExprSrcReg(*this); -} - -TimingExprReadIntReg * -TimingExprReadIntRegParams::create() const -{ - return new TimingExprReadIntReg(*this); -} - -TimingExprLet * -TimingExprLetParams::create() const -{ - return new TimingExprLet(*this); -} - -TimingExprRef * -TimingExprRefParams::create() const -{ - return new TimingExprRef(*this); -} - -TimingExprUn * -TimingExprUnParams::create() const -{ - return new TimingExprUn(*this); -} - -TimingExprBin * -TimingExprBinParams::create() const -{ - return new TimingExprBin(*this); -} - -TimingExprIf * -TimingExprIfParams::create() const -{ - return new TimingExprIf(*this); -} diff --git a/src/cpu/trace/trace_cpu.cc b/src/cpu/trace/trace_cpu.cc index b2326eb11..57f249707 100644 --- a/src/cpu/trace/trace_cpu.cc +++ b/src/cpu/trace/trace_cpu.cc @@ -82,12 +82,6 @@ TraceCPU::~TraceCPU() } -TraceCPU* -TraceCPUParams::create() const -{ - return new TraceCPU(*this); -} - void TraceCPU::updateNumOps(uint64_t rob_num) { diff --git a/src/dev/arm/a9scu.cc b/src/dev/arm/a9scu.cc index aab28b802..2bc713e0d 100644 --- a/src/dev/arm/a9scu.cc +++ b/src/dev/arm/a9scu.cc @@ -103,9 +103,3 @@ A9SCU::write(PacketPtr pkt) pkt->makeAtomicResponse(); return pioDelay; } - -A9SCU * -A9SCUParams::create() const -{ - return new A9SCU(*this); -} diff --git a/src/dev/arm/amba_fake.cc b/src/dev/arm/amba_fake.cc index c38785426..0048c8aa0 100644 --- a/src/dev/arm/amba_fake.cc +++ b/src/dev/arm/amba_fake.cc @@ -81,10 +81,3 @@ AmbaFake::write(PacketPtr pkt) pkt->makeAtomicResponse(); return pioDelay; } - - -AmbaFake * -AmbaFakeParams::create() const -{ - return new AmbaFake(*this); -} diff --git a/src/dev/arm/base_gic.cc b/src/dev/arm/base_gic.cc index f94d197c8..8229a55b1 100644 --- a/src/dev/arm/base_gic.cc +++ b/src/dev/arm/base_gic.cc @@ -194,15 +194,3 @@ ArmPPI::clear() _active = false; platform->gic->clearPPInt(intNum, targetContext()); } - -ArmSPIGen * -ArmSPIParams::create() const -{ - return new ArmSPIGen(*this); -} - -ArmPPIGen * -ArmPPIParams::create() const -{ - return new ArmPPIGen(*this); -} diff --git a/src/dev/arm/display.cc b/src/dev/arm/display.cc index 1bfb16130..e4b7449a9 100644 --- a/src/dev/arm/display.cc +++ b/src/dev/arm/display.cc @@ -42,9 +42,3 @@ Display::Display(const DisplayParams &p) : SimObject(p) {} - -Display * -DisplayParams::create() const -{ - return new Display(*this); -} diff --git a/src/dev/arm/energy_ctrl.cc b/src/dev/arm/energy_ctrl.cc index fadc36d91..be2155d6d 100644 --- a/src/dev/arm/energy_ctrl.cc +++ b/src/dev/arm/energy_ctrl.cc @@ -241,12 +241,6 @@ EnergyCtrl::unserialize(CheckpointIn &cp) } } -EnergyCtrl * -EnergyCtrlParams::create() const -{ - return new EnergyCtrl(*this); -} - void EnergyCtrl::startup() { diff --git a/src/dev/arm/flash_device.cc b/src/dev/arm/flash_device.cc index 155881748..c88012331 100644 --- a/src/dev/arm/flash_device.cc +++ b/src/dev/arm/flash_device.cc @@ -55,17 +55,6 @@ #include "base/trace.hh" #include "debug/Drain.hh" -/** - * Create this device - */ - -FlashDevice* -FlashDeviceParams::create() const -{ - return new FlashDevice(*this); -} - - /** * Flash Device constructor and destructor */ diff --git a/src/dev/arm/fvp_base_pwr_ctrl.cc b/src/dev/arm/fvp_base_pwr_ctrl.cc index fae1f6d53..beeb92642 100644 --- a/src/dev/arm/fvp_base_pwr_ctrl.cc +++ b/src/dev/arm/fvp_base_pwr_ctrl.cc @@ -310,9 +310,3 @@ FVPBasePwrCtrl::startCoreUp(ThreadContext *const tc) ArmISA::Reset().invoke(tc); tc->activate(); } - -FVPBasePwrCtrl * -FVPBasePwrCtrlParams::create() const -{ - return new FVPBasePwrCtrl(*this); -} diff --git a/src/dev/arm/generic_timer.cc b/src/dev/arm/generic_timer.cc index 5d5eff451..6c01049a1 100644 --- a/src/dev/arm/generic_timer.cc +++ b/src/dev/arm/generic_timer.cc @@ -1584,27 +1584,3 @@ GenericTimerMem::timerCtrlWrite(Addr addr, size_t size, uint64_t data, "(0x%x:%i), assuming WI\n", addr, size); } } - -SystemCounter * -SystemCounterParams::create() const -{ - return new SystemCounter(*this); -} - -GenericTimer * -GenericTimerParams::create() const -{ - return new GenericTimer(*this); -} - -GenericTimerFrame * -GenericTimerFrameParams::create() const -{ - return new GenericTimerFrame(*this); -} - -GenericTimerMem * -GenericTimerMemParams::create() const -{ - return new GenericTimerMem(*this); -} diff --git a/src/dev/arm/gic_v2.cc b/src/dev/arm/gic_v2.cc index a1522aabd..0dfc8ce2d 100644 --- a/src/dev/arm/gic_v2.cc +++ b/src/dev/arm/gic_v2.cc @@ -1090,9 +1090,3 @@ GicV2::BankedRegs::unserialize(CheckpointIn &cp) UNSERIALIZE_ARRAY(intConfig, 2); UNSERIALIZE_ARRAY(intPriority, SGI_MAX + PPI_MAX); } - -GicV2 * -GicV2Params::create() const -{ - return new GicV2(*this); -} diff --git a/src/dev/arm/gic_v2m.cc b/src/dev/arm/gic_v2m.cc index 6bb5e67d8..0864dbe10 100644 --- a/src/dev/arm/gic_v2m.cc +++ b/src/dev/arm/gic_v2m.cc @@ -64,18 +64,6 @@ #include "mem/packet.hh" #include "mem/packet_access.hh" -Gicv2m * -Gicv2mParams::create() const -{ - return new Gicv2m(*this); -} - -Gicv2mFrame * -Gicv2mFrameParams::create() const -{ - return new Gicv2mFrame(*this); -} - Gicv2m::Gicv2m(const Params &p) : PioDevice(p), pioDelay(p.pio_delay), frames(p.frames), gic(p.gic) { diff --git a/src/dev/arm/gic_v3.cc b/src/dev/arm/gic_v3.cc index 36da51334..ef27d806f 100644 --- a/src/dev/arm/gic_v3.cc +++ b/src/dev/arm/gic_v3.cc @@ -294,9 +294,3 @@ Gicv3::unserialize(CheckpointIn & cp) cpuInterfaces[cpu_interface_id]->unserializeSection(cp, csprintf("cpuInterface.%i", cpu_interface_id)); } - -Gicv3 * -Gicv3Params::create() const -{ - return new Gicv3(*this); -} diff --git a/src/dev/arm/gic_v3_its.cc b/src/dev/arm/gic_v3_its.cc index ed349ac00..caf058dd3 100644 --- a/src/dev/arm/gic_v3_its.cc +++ b/src/dev/arm/gic_v3_its.cc @@ -1286,9 +1286,3 @@ Gicv3Its::moveAllPendingState( rd2->updateDistributor(); } - -Gicv3Its * -Gicv3ItsParams::create() const -{ - return new Gicv3Its(*this); -} diff --git a/src/dev/arm/gpu_nomali.cc b/src/dev/arm/gpu_nomali.cc index 1d95c5f5a..989852a93 100644 --- a/src/dev/arm/gpu_nomali.cc +++ b/src/dev/arm/gpu_nomali.cc @@ -374,17 +374,3 @@ CustomNoMaliGpu::onReset() for (const auto ® : idRegs) writeRegRaw(reg.first, reg.second); } - - - -NoMaliGpu * -NoMaliGpuParams::create() const -{ - return new NoMaliGpu(*this); -} - -CustomNoMaliGpu * -CustomNoMaliGpuParams::create() const -{ - return new CustomNoMaliGpu(*this); -} diff --git a/src/dev/arm/hdlcd.cc b/src/dev/arm/hdlcd.cc index 6c218662a..472e9aa12 100644 --- a/src/dev/arm/hdlcd.cc +++ b/src/dev/arm/hdlcd.cc @@ -689,10 +689,3 @@ HDLcd::PixelPump::dumpSettings() inform("PixelPump vertical fron porch: %u", t.vFrontPorch); inform("PixelPump vertical fron porch: %u", t.vSync); } - - -HDLcd * -HDLcdParams::create() const -{ - return new HDLcd(*this); -} diff --git a/src/dev/arm/kmi.cc b/src/dev/arm/kmi.cc index 499a39ea5..18fb1f179 100644 --- a/src/dev/arm/kmi.cc +++ b/src/dev/arm/kmi.cc @@ -219,9 +219,3 @@ Pl050::unserialize(CheckpointIn &cp) UNSERIALIZE_SCALAR(clkdiv); paramIn(cp, "raw_ints", rawInterrupts); } - -Pl050 * -Pl050Params::create() const -{ - return new Pl050(*this); -} diff --git a/src/dev/arm/pci_host.cc b/src/dev/arm/pci_host.cc index 1bb895957..ff7a21c05 100644 --- a/src/dev/arm/pci_host.cc +++ b/src/dev/arm/pci_host.cc @@ -68,10 +68,3 @@ GenericArmPciHost::mapPciInterrupt(const PciBusAddr &addr, PciIntPin pin) const fatal("Unsupported PCI interrupt routing policy."); } } - - -GenericArmPciHost * -GenericArmPciHostParams::create() const -{ - return new GenericArmPciHost(*this); -} diff --git a/src/dev/arm/pl011.cc b/src/dev/arm/pl011.cc index f39d11116..ea7641615 100755 --- a/src/dev/arm/pl011.cc +++ b/src/dev/arm/pl011.cc @@ -325,9 +325,3 @@ Pl011::unserialize(CheckpointIn &cp) paramIn(cp, "imsc_serial", imsc); paramIn(cp, "rawInt_serial", rawInt); } - -Pl011 * -Pl011Params::create() const -{ - return new Pl011(*this); -} diff --git a/src/dev/arm/pl111.cc b/src/dev/arm/pl111.cc index 16e2990a2..3847f3ab8 100644 --- a/src/dev/arm/pl111.cc +++ b/src/dev/arm/pl111.cc @@ -742,11 +742,3 @@ Pl111::getAddrRanges() const ranges.push_back(RangeSize(pioAddr, pioSize)); return ranges; } - -Pl111 * -Pl111Params::create() const -{ - return new Pl111(*this); -} - - diff --git a/src/dev/arm/realview.cc b/src/dev/arm/realview.cc index 343f41623..b46aacb94 100644 --- a/src/dev/arm/realview.cc +++ b/src/dev/arm/realview.cc @@ -82,9 +82,3 @@ RealView::clearPciInt(int line) { gic->clearInt(line); } - -RealView * -RealViewParams::create() const -{ - return new RealView(*this); -} diff --git a/src/dev/arm/rtc_pl031.cc b/src/dev/arm/rtc_pl031.cc index 963c126bd..a6cdc7df6 100644 --- a/src/dev/arm/rtc_pl031.cc +++ b/src/dev/arm/rtc_pl031.cc @@ -237,11 +237,3 @@ PL031::unserialize(CheckpointIn &cp) schedule(matchEvent, event_time); } } - - - -PL031 * -PL031Params::create() const -{ - return new PL031(*this); -} diff --git a/src/dev/arm/rv_ctrl.cc b/src/dev/arm/rv_ctrl.cc index 63d2e831e..2d80bc218 100644 --- a/src/dev/arm/rv_ctrl.cc +++ b/src/dev/arm/rv_ctrl.cc @@ -313,21 +313,3 @@ RealViewTemperatureSensor::read() const // Report a dummy 25 degrees temperature return 25000000; } - -RealViewCtrl * -RealViewCtrlParams::create() const -{ - return new RealViewCtrl(*this); -} - -RealViewOsc * -RealViewOscParams::create() const -{ - return new RealViewOsc(*this); -} - -RealViewTemperatureSensor * -RealViewTemperatureSensorParams::create() const -{ - return new RealViewTemperatureSensor(*this); -} diff --git a/src/dev/arm/smmu_v3.cc b/src/dev/arm/smmu_v3.cc index 18870a260..426891a9e 100644 --- a/src/dev/arm/smmu_v3.cc +++ b/src/dev/arm/smmu_v3.cc @@ -826,9 +826,3 @@ SMMUv3::getPort(const std::string &name, PortID id) return ClockedObject::getPort(name, id); } } - -SMMUv3* -SMMUv3Params::create() const -{ - return new SMMUv3(*this); -} diff --git a/src/dev/arm/smmu_v3_deviceifc.cc b/src/dev/arm/smmu_v3_deviceifc.cc index 985ca1789..f7d4c3e60 100644 --- a/src/dev/arm/smmu_v3_deviceifc.cc +++ b/src/dev/arm/smmu_v3_deviceifc.cc @@ -259,9 +259,3 @@ SMMUv3DeviceInterface::drain() } return DrainState::Drained; } - -SMMUv3DeviceInterface* -SMMUv3DeviceInterfaceParams::create() const -{ - return new SMMUv3DeviceInterface(*this); -} diff --git a/src/dev/arm/timer_a9global.cc b/src/dev/arm/timer_a9global.cc index ddae9dfcb..e2c7a36e2 100644 --- a/src/dev/arm/timer_a9global.cc +++ b/src/dev/arm/timer_a9global.cc @@ -308,9 +308,3 @@ A9GlobalTimer::unserialize(CheckpointIn &cp) { global_timer.unserialize(cp); } - -A9GlobalTimer * -A9GlobalTimerParams::create() const -{ - return new A9GlobalTimer(*this); -} diff --git a/src/dev/arm/timer_cpulocal.cc b/src/dev/arm/timer_cpulocal.cc index 0ae7777a2..9b4f7f3da 100644 --- a/src/dev/arm/timer_cpulocal.cc +++ b/src/dev/arm/timer_cpulocal.cc @@ -439,9 +439,3 @@ CpuLocalTimer::unserialize(CheckpointIn &cp) for (int i = 0; i < sys->threads.size(); i++) localTimer[i]->unserializeSection(cp, csprintf("timer%d", i)); } - -CpuLocalTimer * -CpuLocalTimerParams::create() const -{ - return new CpuLocalTimer(*this); -} diff --git a/src/dev/arm/timer_sp804.cc b/src/dev/arm/timer_sp804.cc index 52bc99258..95fb30fe5 100644 --- a/src/dev/arm/timer_sp804.cc +++ b/src/dev/arm/timer_sp804.cc @@ -280,9 +280,3 @@ Sp804::unserialize(CheckpointIn &cp) timer0.unserializeSection(cp, "timer0"); timer1.unserializeSection(cp, "timer1"); } - -Sp804 * -Sp804Params::create() const -{ - return new Sp804(*this); -} diff --git a/src/dev/arm/ufs_device.cc b/src/dev/arm/ufs_device.cc index b9943c34a..f4114c11a 100644 --- a/src/dev/arm/ufs_device.cc +++ b/src/dev/arm/ufs_device.cc @@ -752,17 +752,6 @@ UFSHostDevice::UFSHostDevice(const UFSHostDeviceParams &p) : setValues(); } -/** - * Create the parameters of this device - */ - -UFSHostDevice* -UFSHostDeviceParams::create() const -{ - return new UFSHostDevice(*this); -} - - void UFSHostDevice::regStats() { diff --git a/src/dev/arm/vgic.cc b/src/dev/arm/vgic.cc index daf29d92f..bcc259850 100644 --- a/src/dev/arm/vgic.cc +++ b/src/dev/arm/vgic.cc @@ -552,9 +552,3 @@ VGic::vcpuIntData::unserialize(CheckpointIn &cp) paramIn(cp, "lr", LR[i]); } } - -VGic * -VGicParams::create() const -{ - return new VGic(*this); -} diff --git a/src/dev/arm/vio_mmio.cc b/src/dev/arm/vio_mmio.cc index b402f1c19..b5eaae3d3 100644 --- a/src/dev/arm/vio_mmio.cc +++ b/src/dev/arm/vio_mmio.cc @@ -273,10 +273,3 @@ MmioVirtIO::setInterrupts(uint32_t value) interrupt->clear(); } } - - -MmioVirtIO * -MmioVirtIOParams::create() const -{ - return new MmioVirtIO(*this); -} diff --git a/src/dev/arm/watchdog_sp805.cc b/src/dev/arm/watchdog_sp805.cc index 3ae4e64fd..69a6d3ccb 100644 --- a/src/dev/arm/watchdog_sp805.cc +++ b/src/dev/arm/watchdog_sp805.cc @@ -259,9 +259,3 @@ Sp805::unserialize(CheckpointIn &cp) reschedule(timeoutEvent, when, true); } } - -Sp805 * -Sp805Params::create() const -{ - return new Sp805(*this); -} diff --git a/src/dev/baddev.cc b/src/dev/baddev.cc index 104699f20..3a64212c0 100644 --- a/src/dev/baddev.cc +++ b/src/dev/baddev.cc @@ -56,9 +56,3 @@ BadDevice::write(PacketPtr pkt) { panic("Device %s not imlpmented\n", devname); } - -BadDevice * -BadDeviceParams::create() const -{ - return new BadDevice(*this); -} diff --git a/src/dev/hsa/hsa_packet_processor.cc b/src/dev/hsa/hsa_packet_processor.cc index fef70df73..91d24e5f1 100644 --- a/src/dev/hsa/hsa_packet_processor.cc +++ b/src/dev/hsa/hsa_packet_processor.cc @@ -657,12 +657,6 @@ AQLRingBuffer::allocEntry(uint32_t nBufReq) return nBufReq; } -HSAPacketProcessor * -HSAPacketProcessorParams::create() const -{ - return new HSAPacketProcessor(*this); -} - void HSAPacketProcessor::finishPkt(void *pvPkt, uint32_t rl_idx) { diff --git a/src/dev/i2c/bus.cc b/src/dev/i2c/bus.cc index 4c6fe00dc..345d71ceb 100644 --- a/src/dev/i2c/bus.cc +++ b/src/dev/i2c/bus.cc @@ -234,9 +234,3 @@ I2CBus::unserialize(CheckpointIn &cp) UNSERIALIZE_SCALAR(i2cAddr); UNSERIALIZE_SCALAR(message); } - -I2CBus* -I2CBusParams::create() const -{ - return new I2CBus(*this); -} diff --git a/src/dev/isa_fake.cc b/src/dev/isa_fake.cc index bcce91981..b441120e1 100644 --- a/src/dev/isa_fake.cc +++ b/src/dev/isa_fake.cc @@ -142,9 +142,3 @@ IsaFake::write(PacketPtr pkt) } return pioDelay; } - -IsaFake * -IsaFakeParams::create() const -{ - return new IsaFake(*this); -} diff --git a/src/dev/mips/malta.cc b/src/dev/mips/malta.cc index eddc83867..543823395 100644 --- a/src/dev/mips/malta.cc +++ b/src/dev/mips/malta.cc @@ -95,9 +95,3 @@ Malta::unserialize(CheckpointIn &cp) { UNSERIALIZE_ARRAY(intr_sum_type, Malta::Max_CPUs); } - -Malta * -MaltaParams::create() const -{ - return new Malta(*this); -} diff --git a/src/dev/mips/malta_cchip.cc b/src/dev/mips/malta_cchip.cc index 81ec67eca..2948077f6 100644 --- a/src/dev/mips/malta_cchip.cc +++ b/src/dev/mips/malta_cchip.cc @@ -139,10 +139,3 @@ void MaltaCChip::unserialize(CheckpointIn &cp) { } - -MaltaCChip * -MaltaCChipParams::create() const -{ - return new MaltaCChip(*this); -} - diff --git a/src/dev/mips/malta_io.cc b/src/dev/mips/malta_io.cc index 0f979cc65..c14a98017 100644 --- a/src/dev/mips/malta_io.cc +++ b/src/dev/mips/malta_io.cc @@ -143,9 +143,3 @@ MaltaIO::startup() rtc.startup(); pitimer.startup(); } - -MaltaIO * -MaltaIOParams::create() const -{ - return new MaltaIO(*this); -} diff --git a/src/dev/net/dist_etherlink.cc b/src/dev/net/dist_etherlink.cc index b55763308..f27563084 100644 --- a/src/dev/net/dist_etherlink.cc +++ b/src/dev/net/dist_etherlink.cc @@ -253,10 +253,4 @@ DistEtherLink::LocalIface::LocalIface(const std::string &name, rx->setDistInt(m); } -DistEtherLink * -DistEtherLinkParams::create() const -{ - return new DistEtherLink(*this); -} - diff --git a/src/dev/net/etherbus.cc b/src/dev/net/etherbus.cc index c92074cbf..28c9f8d96 100644 --- a/src/dev/net/etherbus.cc +++ b/src/dev/net/etherbus.cc @@ -105,9 +105,3 @@ EtherBus::send(EtherInt *sndr, EthPacketPtr &pkt) return true; } - -EtherBus * -EtherBusParams::create() const -{ - return new EtherBus(*this); -} diff --git a/src/dev/net/etherdump.cc b/src/dev/net/etherdump.cc index 6e0ae6316..ce91132dd 100644 --- a/src/dev/net/etherdump.cc +++ b/src/dev/net/etherdump.cc @@ -100,9 +100,3 @@ EtherDump::dumpPacket(EthPacketPtr &packet) stream->write(reinterpret_cast(packet->data), pkthdr.caplen); stream->flush(); } - -EtherDump * -EtherDumpParams::create() const -{ - return new EtherDump(*this); -} diff --git a/src/dev/net/etherlink.cc b/src/dev/net/etherlink.cc index 9bbe000fd..9bf805f98 100644 --- a/src/dev/net/etherlink.cc +++ b/src/dev/net/etherlink.cc @@ -264,9 +264,3 @@ EtherLink::Link::unserialize(const string &base, CheckpointIn &cp) "in-flight packets may have been dropped.\n"); } } - -EtherLink * -EtherLinkParams::create() const -{ - return new EtherLink(*this); -} diff --git a/src/dev/net/etherswitch.cc b/src/dev/net/etherswitch.cc index 19c3bdba8..22c684cd4 100644 --- a/src/dev/net/etherswitch.cc +++ b/src/dev/net/etherswitch.cc @@ -345,9 +345,3 @@ EtherSwitch::Interface::PortFifo::unserialize(CheckpointIn &cp) } } - -EtherSwitch * -EtherSwitchParams::create() const -{ - return new EtherSwitch(*this); -} diff --git a/src/dev/net/ethertap.cc b/src/dev/net/ethertap.cc index 79a4f9491..ec67f471c 100644 --- a/src/dev/net/ethertap.cc +++ b/src/dev/net/ethertap.cc @@ -469,16 +469,4 @@ EtherTap::sendReal(const void *data, size_t len) return true; } -EtherTap * -EtherTapParams::create() const -{ - return new EtherTap(*this); -} - #endif - -EtherTapStub * -EtherTapStubParams::create() const -{ - return new EtherTapStub(*this); -} diff --git a/src/dev/net/i8254xGBe.cc b/src/dev/net/i8254xGBe.cc index 72af0c9b7..799f9c9fd 100644 --- a/src/dev/net/i8254xGBe.cc +++ b/src/dev/net/i8254xGBe.cc @@ -2463,9 +2463,3 @@ IGbE::unserialize(CheckpointIn &cp) txDescCache.unserializeSection(cp, "TxDescCache"); rxDescCache.unserializeSection(cp, "RxDescCache"); } - -IGbE * -IGbEParams::create() const -{ - return new IGbE(*this); -} diff --git a/src/dev/net/ns_gige.cc b/src/dev/net/ns_gige.cc index af9d02e07..1cd4f69ca 100644 --- a/src/dev/net/ns_gige.cc +++ b/src/dev/net/ns_gige.cc @@ -2365,9 +2365,3 @@ NSGigE::unserialize(CheckpointIn &cp) schedule(intrEvent, intrEventTick); } } - -NSGigE * -NSGigEParams::create() const -{ - return new NSGigE(*this); -} diff --git a/src/dev/net/sinic.cc b/src/dev/net/sinic.cc index c227ab120..d9c16ffcb 100644 --- a/src/dev/net/sinic.cc +++ b/src/dev/net/sinic.cc @@ -1501,9 +1501,3 @@ Device::unserialize(CheckpointIn &cp) } } // namespace Sinic - -Sinic::Device * -SinicParams::create() const -{ - return new Sinic::Device(*this); -} diff --git a/src/dev/pci/copy_engine.cc b/src/dev/pci/copy_engine.cc index 7576bff2e..5673e63ad 100644 --- a/src/dev/pci/copy_engine.cc +++ b/src/dev/pci/copy_engine.cc @@ -730,9 +730,3 @@ CopyEngine::CopyEngineChannel::drainResume() DPRINTF(DMACopyEngine, "Restarting state machine at state %d\n", nextState); restartStateMachine(); } - -CopyEngine * -CopyEngineParams::create() const -{ - return new CopyEngine(*this); -} diff --git a/src/dev/pci/device.cc b/src/dev/pci/device.cc index 1942bc183..9c5117bf2 100644 --- a/src/dev/pci/device.cc +++ b/src/dev/pci/device.cc @@ -550,33 +550,3 @@ PciDevice::unserialize(CheckpointIn &cp) pxcap.pxdc2 = tmp32; pioPort.sendRangeChange(); } - -PciBarNone * -PciBarNoneParams::create() const -{ - return new PciBarNone(*this); -} - -PciIoBar * -PciIoBarParams::create() const -{ - return new PciIoBar(*this); -} - -PciLegacyIoBar * -PciLegacyIoBarParams::create() const -{ - return new PciLegacyIoBar(*this); -} - -PciMemBar * -PciMemBarParams::create() const -{ - return new PciMemBar(*this); -} - -PciMemUpperBar * -PciMemUpperBarParams::create() const -{ - return new PciMemUpperBar(*this); -} diff --git a/src/dev/pci/host.cc b/src/dev/pci/host.cc index 84b140358..67acf7094 100644 --- a/src/dev/pci/host.cc +++ b/src/dev/pci/host.cc @@ -217,9 +217,3 @@ GenericPciHost::mapPciInterrupt(const PciBusAddr &addr, PciIntPin pin) const return dev->interruptLine(); } - -GenericPciHost * -GenericPciHostParams::create() const -{ - return new GenericPciHost(*this); -} diff --git a/src/dev/ps2/keyboard.cc b/src/dev/ps2/keyboard.cc index 2075c4bbe..d62ec443e 100644 --- a/src/dev/ps2/keyboard.cc +++ b/src/dev/ps2/keyboard.cc @@ -171,10 +171,3 @@ PS2Keyboard::keyPress(uint32_t key, bool down) for (uint8_t c : keys) send(c); } - - -PS2Keyboard * -PS2KeyboardParams::create() const -{ - return new PS2Keyboard(*this); -} diff --git a/src/dev/ps2/mouse.cc b/src/dev/ps2/mouse.cc index 756b51736..bc3d3f15c 100644 --- a/src/dev/ps2/mouse.cc +++ b/src/dev/ps2/mouse.cc @@ -166,9 +166,3 @@ PS2Mouse::unserialize(CheckpointIn &cp) UNSERIALIZE_SCALAR(resolution); UNSERIALIZE_SCALAR(sampleRate); } - -PS2Mouse * -PS2MouseParams::create() const -{ - return new PS2Mouse(*this); -} diff --git a/src/dev/ps2/touchkit.cc b/src/dev/ps2/touchkit.cc index 7ffd273d8..d772b2cb6 100644 --- a/src/dev/ps2/touchkit.cc +++ b/src/dev/ps2/touchkit.cc @@ -204,9 +204,3 @@ PS2TouchKit::mouseAt(uint16_t x, uint16_t y, uint8_t buttons) send(resp, sizeof(resp)); } - -PS2TouchKit * -PS2TouchKitParams::create() const -{ - return new PS2TouchKit(*this); -} diff --git a/src/dev/serial/serial.cc b/src/dev/serial/serial.cc index 90bdbf104..691063834 100644 --- a/src/dev/serial/serial.cc +++ b/src/dev/serial/serial.cc @@ -82,11 +82,3 @@ SerialNullDevice::readData() { panic("SerialNullDevice does not have pending data.\n"); } - - - -SerialNullDevice * -SerialNullDeviceParams::create() const -{ - return new SerialNullDevice(*this); -} diff --git a/src/dev/serial/simple.cc b/src/dev/serial/simple.cc index 6a7b94db8..811991b09 100644 --- a/src/dev/serial/simple.cc +++ b/src/dev/serial/simple.cc @@ -78,9 +78,3 @@ SimpleUart::write(PacketPtr pkt) pkt->makeAtomicResponse(); return pioDelay; } - -SimpleUart * -SimpleUartParams::create() const -{ - return new SimpleUart(*this); -} diff --git a/src/dev/serial/terminal.cc b/src/dev/serial/terminal.cc index 9d5254eba..af4ffddf6 100644 --- a/src/dev/serial/terminal.cc +++ b/src/dev/serial/terminal.cc @@ -359,9 +359,3 @@ Terminal::writeData(uint8_t c) isprint(c) ? c : ' ', (int)c); } - -Terminal * -TerminalParams::create() const -{ - return new Terminal(*this); -} diff --git a/src/dev/serial/uart8250.cc b/src/dev/serial/uart8250.cc index 4b7e9fe63..10dc08e95 100644 --- a/src/dev/serial/uart8250.cc +++ b/src/dev/serial/uart8250.cc @@ -319,9 +319,3 @@ Uart8250::unserialize(CheckpointIn &cp) if (txintrwhen != 0) schedule(txIntrEvent, txintrwhen); } - -Uart8250 * -Uart8250Params::create() const -{ - return new Uart8250(*this); -} diff --git a/src/dev/sparc/dtod.cc b/src/dev/sparc/dtod.cc index a1d096701..e2bdbb109 100644 --- a/src/dev/sparc/dtod.cc +++ b/src/dev/sparc/dtod.cc @@ -86,9 +86,3 @@ DumbTOD::unserialize(CheckpointIn &cp) { UNSERIALIZE_SCALAR(todTime); } - -DumbTOD * -DumbTODParams::create() const -{ - return new DumbTOD(*this); -} diff --git a/src/dev/sparc/iob.cc b/src/dev/sparc/iob.cc index d8f108738..a0d1982fe 100644 --- a/src/dev/sparc/iob.cc +++ b/src/dev/sparc/iob.cc @@ -375,9 +375,3 @@ Iob::unserialize(CheckpointIn &cp) paramIn(cp, "source", jIntBusy[x].source); }; } - -Iob * -IobParams::create() const -{ - return new Iob(*this); -} diff --git a/src/dev/sparc/mm_disk.cc b/src/dev/sparc/mm_disk.cc index ab4562884..f1da2b984 100644 --- a/src/dev/sparc/mm_disk.cc +++ b/src/dev/sparc/mm_disk.cc @@ -182,9 +182,3 @@ MmDisk::serialize(CheckpointOut &cp) const } ClockedObject::serialize(cp); } - -MmDisk * -MmDiskParams::create() const -{ - return new MmDisk(*this); -} diff --git a/src/dev/sparc/t1000.cc b/src/dev/sparc/t1000.cc index 3cb99b53f..ee61fbfe5 100644 --- a/src/dev/sparc/t1000.cc +++ b/src/dev/sparc/t1000.cc @@ -95,9 +95,3 @@ T1000::calcPciMemAddr(Addr addr) { panic("Need implementation\n"); } - -T1000 * -T1000Params::create() const -{ - return new T1000(*this); -} diff --git a/src/dev/storage/disk_image.cc b/src/dev/storage/disk_image.cc index 3ff29ae5c..58d2ac032 100644 --- a/src/dev/storage/disk_image.cc +++ b/src/dev/storage/disk_image.cc @@ -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); -} diff --git a/src/dev/storage/ide_ctrl.cc b/src/dev/storage/ide_ctrl.cc index d9e628cf6..695e4d832 100644 --- a/src/dev/storage/ide_ctrl.cc +++ b/src/dev/storage/ide_ctrl.cc @@ -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); -} diff --git a/src/dev/storage/ide_disk.cc b/src/dev/storage/ide_disk.cc index 25516ec44..3f297754f 100644 --- a/src/dev/storage/ide_disk.cc +++ b/src/dev/storage/ide_disk.cc @@ -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); -} diff --git a/src/dev/storage/simple_disk.cc b/src/dev/storage/simple_disk.cc index 1e16685df..91f213b9f 100644 --- a/src/dev/storage/simple_disk.cc +++ b/src/dev/storage/simple_disk.cc @@ -82,9 +82,3 @@ SimpleDisk::write(Addr addr, baddr_t block, int count) { panic("unimplemented!\n"); } - -SimpleDisk * -SimpleDiskParams::create() const -{ - return new SimpleDisk(*this); -} diff --git a/src/dev/virtio/base.cc b/src/dev/virtio/base.cc index 0443fb498..f5332e900 100644 --- a/src/dev/virtio/base.cc +++ b/src/dev/virtio/base.cc @@ -484,9 +484,3 @@ VirtIODummyDevice::VirtIODummyDevice(const VirtIODummyDeviceParams ¶ms) : VirtIODeviceBase(params, ID_INVALID, 0, 0) { } - -VirtIODummyDevice * -VirtIODummyDeviceParams::create() const -{ - return new VirtIODummyDevice(*this); -} diff --git a/src/dev/virtio/block.cc b/src/dev/virtio/block.cc index e7d7c4164..2a08a8b1a 100644 --- a/src/dev/virtio/block.cc +++ b/src/dev/virtio/block.cc @@ -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); -} diff --git a/src/dev/virtio/console.cc b/src/dev/virtio/console.cc index eb4981fdb..8f5d3f7a8 100644 --- a/src/dev/virtio/console.cc +++ b/src/dev/virtio/console.cc @@ -112,9 +112,3 @@ VirtIOConsole::TermTransQueue::onNotifyDescriptor(VirtDescriptor *desc) produceDescriptor(desc, 0); parent.kick(); } - -VirtIOConsole * -VirtIOConsoleParams::create() const -{ - return new VirtIOConsole(*this); -} diff --git a/src/dev/virtio/fs9p.cc b/src/dev/virtio/fs9p.cc index 18395f79d..5263eed97 100644 --- a/src/dev/virtio/fs9p.cc +++ b/src/dev/virtio/fs9p.cc @@ -472,17 +472,9 @@ VirtIO9PDiod::terminateDiod() // Managed to kill diod return; } - -} -VirtIO9PDiod * -VirtIO9PDiodParams::create() const -{ - return new VirtIO9PDiod(*this); } - - VirtIO9PSocket::VirtIO9PSocket(const Params ¶ms) : VirtIO9PProxy(params), fdSocket(-1) { @@ -569,10 +561,3 @@ VirtIO9PSocket::SocketDataEvent::process(int revent) { parent.serverDataReady(); } - - -VirtIO9PSocket * -VirtIO9PSocketParams::create() const -{ - return new VirtIO9PSocket(*this); -} diff --git a/src/dev/virtio/pci.cc b/src/dev/virtio/pci.cc index 9fcc09a6b..003cbf563 100644 --- a/src/dev/virtio/pci.cc +++ b/src/dev/virtio/pci.cc @@ -222,9 +222,3 @@ PciVirtIO::kick() interruptDeliveryPending = true; intrPost(); } - -PciVirtIO * -PciVirtIOParams::create() const -{ - return new PciVirtIO(*this); -} diff --git a/src/dev/x86/cmos.cc b/src/dev/x86/cmos.cc index eab4ad2b7..3c38c25a7 100644 --- a/src/dev/x86/cmos.cc +++ b/src/dev/x86/cmos.cc @@ -138,9 +138,3 @@ X86ISA::Cmos::unserialize(CheckpointIn &cp) // Serialize the timer rtc.unserialize("rtc", cp); } - -X86ISA::Cmos * -CmosParams::create() const -{ - return new X86ISA::Cmos(*this); -} diff --git a/src/dev/x86/i8042.cc b/src/dev/x86/i8042.cc index 3756cf944..c6c1dd4dd 100644 --- a/src/dev/x86/i8042.cc +++ b/src/dev/x86/i8042.cc @@ -305,9 +305,3 @@ X86ISA::I8042::unserialize(CheckpointIn &cp) UNSERIALIZE_SCALAR(dataReg); UNSERIALIZE_SCALAR(lastCommand); } - -X86ISA::I8042 * -I8042Params::create() const -{ - return new X86ISA::I8042(*this); -} diff --git a/src/dev/x86/i82094aa.cc b/src/dev/x86/i82094aa.cc index 12ac70ca8..dabfe8c9f 100644 --- a/src/dev/x86/i82094aa.cc +++ b/src/dev/x86/i82094aa.cc @@ -291,9 +291,3 @@ X86ISA::I82094AA::unserialize(CheckpointIn &cp) redirTable[i] = (RedirTableEntry)redirTableArray[i]; } } - -X86ISA::I82094AA * -I82094AAParams::create() const -{ - return new X86ISA::I82094AA(*this); -} diff --git a/src/dev/x86/i8237.cc b/src/dev/x86/i8237.cc index 2423c5175..05d08c862 100644 --- a/src/dev/x86/i8237.cc +++ b/src/dev/x86/i8237.cc @@ -135,9 +135,3 @@ X86ISA::I8237::unserialize(CheckpointIn &cp) { UNSERIALIZE_SCALAR(maskReg); } - -X86ISA::I8237 * -I8237Params::create() const -{ - return new X86ISA::I8237(*this); -} diff --git a/src/dev/x86/i8254.cc b/src/dev/x86/i8254.cc index b23f09af0..74428f13a 100644 --- a/src/dev/x86/i8254.cc +++ b/src/dev/x86/i8254.cc @@ -95,9 +95,3 @@ X86ISA::I8254::startup() { pit.startup(); } - -X86ISA::I8254 * -I8254Params::create() const -{ - return new X86ISA::I8254(*this); -} diff --git a/src/dev/x86/i8259.cc b/src/dev/x86/i8259.cc index 780c8ddd0..c2817b9ba 100644 --- a/src/dev/x86/i8259.cc +++ b/src/dev/x86/i8259.cc @@ -364,9 +364,3 @@ X86ISA::I8259::unserialize(CheckpointIn &cp) UNSERIALIZE_SCALAR(initControlWord); UNSERIALIZE_SCALAR(autoEOI); } - -X86ISA::I8259 * -I8259Params::create() const -{ - return new X86ISA::I8259(*this); -} diff --git a/src/dev/x86/pc.cc b/src/dev/x86/pc.cc index 4001c2021..ac7f03459 100644 --- a/src/dev/x86/pc.cc +++ b/src/dev/x86/pc.cc @@ -134,9 +134,3 @@ Pc::clearPciInt(int line) { warn_once("Tried to clear PCI interrupt %d\n", line); } - -Pc * -PcParams::create() const -{ - return new Pc(*this); -} diff --git a/src/dev/x86/south_bridge.cc b/src/dev/x86/south_bridge.cc index 4f713bd9d..8bf610723 100644 --- a/src/dev/x86/south_bridge.cc +++ b/src/dev/x86/south_bridge.cc @@ -43,9 +43,3 @@ SouthBridge::SouthBridge(const Params &p) : SimObject(p), assert(pc); pc->southBridge = this; } - -SouthBridge * -SouthBridgeParams::create() const -{ - return new SouthBridge(*this); -} diff --git a/src/dev/x86/speaker.cc b/src/dev/x86/speaker.cc index 90f30be25..e6c85ce0f 100644 --- a/src/dev/x86/speaker.cc +++ b/src/dev/x86/speaker.cc @@ -83,9 +83,3 @@ X86ISA::Speaker::unserialize(CheckpointIn &cp) { UNSERIALIZE_SCALAR(controlVal); } - -X86ISA::Speaker * -PcSpeakerParams::create() const -{ - return new X86ISA::Speaker(*this); -} diff --git a/src/gpu-compute/compute_unit.cc b/src/gpu-compute/compute_unit.cc index b98e5a98f..2787e427a 100644 --- a/src/gpu-compute/compute_unit.cc +++ b/src/gpu-compute/compute_unit.cc @@ -1355,12 +1355,6 @@ ComputeUnit::DataPort::processMemRespEvent(PacketPtr pkt) delete pkt; } -ComputeUnit* -ComputeUnitParams::create() const -{ - return new ComputeUnit(*this); -} - bool ComputeUnit::DTLBPort::recvTimingResp(PacketPtr pkt) { diff --git a/src/gpu-compute/dispatcher.cc b/src/gpu-compute/dispatcher.cc index 7c173e855..17c74f0ec 100644 --- a/src/gpu-compute/dispatcher.cc +++ b/src/gpu-compute/dispatcher.cc @@ -360,9 +360,3 @@ GPUDispatcher::scheduleDispatch() schedule(&tickEvent, curTick() + shader->clockPeriod()); } } - -GPUDispatcher * -GPUDispatcherParams::create() const -{ - return new GPUDispatcher(*this); -} diff --git a/src/gpu-compute/gpu_command_processor.cc b/src/gpu-compute/gpu_command_processor.cc index c2d07f795..0b7f2fa66 100644 --- a/src/gpu-compute/gpu_command_processor.cc +++ b/src/gpu-compute/gpu_command_processor.cc @@ -221,9 +221,3 @@ GPUCommandProcessor::shader() { return _shader; } - -GPUCommandProcessor* -GPUCommandProcessorParams::create() const -{ - return new GPUCommandProcessor(*this); -} diff --git a/src/gpu-compute/gpu_compute_driver.cc b/src/gpu-compute/gpu_compute_driver.cc index 325a844dc..a840bb28a 100644 --- a/src/gpu-compute/gpu_compute_driver.cc +++ b/src/gpu-compute/gpu_compute_driver.cc @@ -410,9 +410,3 @@ GPUComputeDriver::ldsApeLimit(Addr apeBase) const { return (apeBase & 0xFFFFFFFF00000000UL) | 0xFFFFFFFF; } - -GPUComputeDriver* -GPUComputeDriverParams::create() const -{ - return new GPUComputeDriver(*this); -} diff --git a/src/gpu-compute/gpu_tlb.cc b/src/gpu-compute/gpu_tlb.cc index 7a939e617..700a894ca 100644 --- a/src/gpu-compute/gpu_tlb.cc +++ b/src/gpu-compute/gpu_tlb.cc @@ -1514,10 +1514,3 @@ namespace X86ISA TLBFootprint.clear(); } } // namespace X86ISA - -X86ISA::GpuTLB* -X86GPUTLBParams::create() const -{ - return new X86ISA::GpuTLB(*this); -} - diff --git a/src/gpu-compute/lds_state.cc b/src/gpu-compute/lds_state.cc index f07b9c297..1f653cb74 100644 --- a/src/gpu-compute/lds_state.cc +++ b/src/gpu-compute/lds_state.cc @@ -63,15 +63,6 @@ LdsState::LdsState(const Params ¶ms) : "the LDS should be an even number"); } -/** - * Needed by the SWIG compiler - */ -LdsState * -LdsStateParams::create() const -{ - return new LdsState(*this); -} - /** * set the parent and name based on the parent */ diff --git a/src/gpu-compute/register_file.cc b/src/gpu-compute/register_file.cc index 51d5693c1..42a74e8eb 100644 --- a/src/gpu-compute/register_file.cc +++ b/src/gpu-compute/register_file.cc @@ -171,12 +171,6 @@ RegisterFile::waveExecuteInst(Wavefront *w, GPUDynInstPtr ii) { } -RegisterFile* -RegisterFileParams::create() const -{ - return new RegisterFile(*this); -} - // Events // Mark a register as free in the scoreboard/busy vector diff --git a/src/gpu-compute/register_manager.cc b/src/gpu-compute/register_manager.cc index fefb32960..f8487554b 100644 --- a/src/gpu-compute/register_manager.cc +++ b/src/gpu-compute/register_manager.cc @@ -135,9 +135,3 @@ RegisterManager::regStats() { policy->regStats(); } - -RegisterManager* -RegisterManagerParams::create() const -{ - return new RegisterManager(*this); -} diff --git a/src/gpu-compute/scalar_register_file.cc b/src/gpu-compute/scalar_register_file.cc index fbb81fe69..d8083ea31 100644 --- a/src/gpu-compute/scalar_register_file.cc +++ b/src/gpu-compute/scalar_register_file.cc @@ -156,9 +156,3 @@ ScalarRegisterFile::scheduleWriteOperandsFromLoad(Wavefront *w, } } } - -ScalarRegisterFile* -ScalarRegisterFileParams::create() const -{ - return new ScalarRegisterFile(*this); -} diff --git a/src/gpu-compute/shader.cc b/src/gpu-compute/shader.cc index 9db0347a8..365edd44b 100644 --- a/src/gpu-compute/shader.cc +++ b/src/gpu-compute/shader.cc @@ -154,12 +154,6 @@ Shader::updateContext(int cid) { assert(gpuTc); } -Shader* -ShaderParams::create() const -{ - return new Shader(*this); -} - void Shader::execScheduledAdds() { diff --git a/src/gpu-compute/simple_pool_manager.cc b/src/gpu-compute/simple_pool_manager.cc index 78f4907bd..cccda901f 100644 --- a/src/gpu-compute/simple_pool_manager.cc +++ b/src/gpu-compute/simple_pool_manager.cc @@ -35,12 +35,6 @@ #include "base/logging.hh" -SimplePoolManager * -SimplePoolManagerParams::create() const -{ - return new SimplePoolManager(*this); -} - // return the min number of elements that the manager can reserve given // a request for "size" elements uint32_t diff --git a/src/gpu-compute/tlb_coalescer.cc b/src/gpu-compute/tlb_coalescer.cc index a22b2c886..39db4ee13 100644 --- a/src/gpu-compute/tlb_coalescer.cc +++ b/src/gpu-compute/tlb_coalescer.cc @@ -552,11 +552,3 @@ TLBCoalescer::regStats() localLatency = localqueuingCycles / uncoalescedAccesses; } - - -TLBCoalescer* -TLBCoalescerParams::create() const -{ - return new TLBCoalescer(*this); -} - diff --git a/src/gpu-compute/vector_register_file.cc b/src/gpu-compute/vector_register_file.cc index a4cc1275e..c44955cd8 100644 --- a/src/gpu-compute/vector_register_file.cc +++ b/src/gpu-compute/vector_register_file.cc @@ -207,9 +207,3 @@ VectorRegisterFile::scheduleWriteOperandsFromLoad( mask = mask >> 4; } } - -VectorRegisterFile* -VectorRegisterFileParams::create() const -{ - return new VectorRegisterFile(*this); -} diff --git a/src/gpu-compute/wavefront.cc b/src/gpu-compute/wavefront.cc index 08acb5ed0..b7ff95ab2 100644 --- a/src/gpu-compute/wavefront.cc +++ b/src/gpu-compute/wavefront.cc @@ -44,12 +44,6 @@ #include "gpu-compute/simple_pool_manager.hh" #include "gpu-compute/vector_register_file.hh" -Wavefront* -WavefrontParams::create() const -{ - return new Wavefront(*this); -} - Wavefront::Wavefront(const Params &p) : SimObject(p), wfSlotId(p.wf_slot_id), simdId(p.simdId), maxIbSize(p.max_ib_size), _gpuISA(*this), diff --git a/src/learning_gem5/part2/goodbye_object.cc b/src/learning_gem5/part2/goodbye_object.cc index 4be0cc69e..6d2f90437 100644 --- a/src/learning_gem5/part2/goodbye_object.cc +++ b/src/learning_gem5/part2/goodbye_object.cc @@ -94,9 +94,3 @@ GoodbyeObject::fillBuffer() exitSimLoop(buffer, 0, curTick() + bandwidth * bytes_copied); } } - -GoodbyeObject* -GoodbyeObjectParams::create() const -{ - return new GoodbyeObject(*this); -} diff --git a/src/learning_gem5/part2/hello_object.cc b/src/learning_gem5/part2/hello_object.cc index b987c3807..e156cac00 100644 --- a/src/learning_gem5/part2/hello_object.cc +++ b/src/learning_gem5/part2/hello_object.cc @@ -68,9 +68,3 @@ HelloObject::processEvent() schedule(event, curTick() + latency); } } - -HelloObject* -HelloObjectParams::create() const -{ - return new HelloObject(*this); -} diff --git a/src/learning_gem5/part2/simple_cache.cc b/src/learning_gem5/part2/simple_cache.cc index 056520204..661cae56f 100644 --- a/src/learning_gem5/part2/simple_cache.cc +++ b/src/learning_gem5/part2/simple_cache.cc @@ -431,10 +431,3 @@ SimpleCache::SimpleCacheStats::SimpleCacheStats(Stats::Group *parent) { missLatency.init(16); // number of buckets } - - -SimpleCache* -SimpleCacheParams::create() const -{ - return new SimpleCache(*this); -} diff --git a/src/learning_gem5/part2/simple_memobj.cc b/src/learning_gem5/part2/simple_memobj.cc index 490322070..a97078963 100644 --- a/src/learning_gem5/part2/simple_memobj.cc +++ b/src/learning_gem5/part2/simple_memobj.cc @@ -228,11 +228,3 @@ SimpleMemobj::sendRangeChange() instPort.sendRangeChange(); dataPort.sendRangeChange(); } - - - -SimpleMemobj* -SimpleMemobjParams::create() const -{ - return new SimpleMemobj(*this); -} diff --git a/src/learning_gem5/part2/simple_object.cc b/src/learning_gem5/part2/simple_object.cc index 4b482da90..6ae7f4656 100644 --- a/src/learning_gem5/part2/simple_object.cc +++ b/src/learning_gem5/part2/simple_object.cc @@ -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); -} diff --git a/src/mem/addr_mapper.cc b/src/mem/addr_mapper.cc index 86a81e019..8fdefdcbd 100644 --- a/src/mem/addr_mapper.cc +++ b/src/mem/addr_mapper.cc @@ -216,12 +216,6 @@ RangeAddrMapper::RangeAddrMapper(const RangeAddrMapperParams &p) : } } -RangeAddrMapper* -RangeAddrMapperParams::create() const -{ - return new RangeAddrMapper(*this); -} - Addr RangeAddrMapper::remapAddr(Addr addr) const { diff --git a/src/mem/bridge.cc b/src/mem/bridge.cc index 135d32c42..d43190a9d 100644 --- a/src/mem/bridge.cc +++ b/src/mem/bridge.cc @@ -390,9 +390,3 @@ Bridge::BridgeResponsePort::getAddrRanges() const { return ranges; } - -Bridge * -BridgeParams::create() const -{ - return new Bridge(*this); -} diff --git a/src/mem/cache/base.cc b/src/mem/cache/base.cc index a86cc2e92..b74e8cc5c 100644 --- a/src/mem/cache/base.cc +++ b/src/mem/cache/base.cc @@ -2498,9 +2498,3 @@ WriteAllocator::updateMode(Addr write_addr, unsigned write_size, } nextAddr = write_addr + write_size; } - -WriteAllocator* -WriteAllocatorParams::create() const -{ - return new WriteAllocator(*this); -} diff --git a/src/mem/cache/cache.cc b/src/mem/cache/cache.cc index 04156c8f8..e3e382ba4 100644 --- a/src/mem/cache/cache.cc +++ b/src/mem/cache/cache.cc @@ -67,6 +67,8 @@ Cache::Cache(const CacheParams &p) : BaseCache(p, p.system->cacheLineSize()), doFastWrites(true) { + assert(p.tags); + assert(p.replacement_policy); } void @@ -1429,12 +1431,3 @@ Cache::sendMSHRQueuePacket(MSHR* mshr) return BaseCache::sendMSHRQueuePacket(mshr); } - -Cache* -CacheParams::create() const -{ - assert(tags); - assert(replacement_policy); - - return new Cache(*this); -} diff --git a/src/mem/cache/compressors/base_delta.cc b/src/mem/cache/compressors/base_delta.cc index 6901255b0..ab5862ca3 100644 --- a/src/mem/cache/compressors/base_delta.cc +++ b/src/mem/cache/compressors/base_delta.cc @@ -72,39 +72,3 @@ Base16Delta8::Base16Delta8(const Params &p) } } // namespace Compressor - -Compressor::Base64Delta8* -Base64Delta8Params::create() const -{ - return new Compressor::Base64Delta8(*this); -} - -Compressor::Base64Delta16* -Base64Delta16Params::create() const -{ - return new Compressor::Base64Delta16(*this); -} - -Compressor::Base64Delta32* -Base64Delta32Params::create() const -{ - return new Compressor::Base64Delta32(*this); -} - -Compressor::Base32Delta8* -Base32Delta8Params::create() const -{ - return new Compressor::Base32Delta8(*this); -} - -Compressor::Base32Delta16* -Base32Delta16Params::create() const -{ - return new Compressor::Base32Delta16(*this); -} - -Compressor::Base16Delta8* -Base16Delta8Params::create() const -{ - return new Compressor::Base16Delta8(*this); -} diff --git a/src/mem/cache/compressors/cpack.cc b/src/mem/cache/compressors/cpack.cc index bf241d0ed..7d57297a1 100644 --- a/src/mem/cache/compressors/cpack.cc +++ b/src/mem/cache/compressors/cpack.cc @@ -50,9 +50,3 @@ CPack::addToDictionary(DictionaryEntry data) } } // namespace Compressor - -Compressor::CPack* -CPackParams::create() const -{ - return new Compressor::CPack(*this); -} diff --git a/src/mem/cache/compressors/fpc.cc b/src/mem/cache/compressors/fpc.cc index 8398a3212..090845316 100644 --- a/src/mem/cache/compressors/fpc.cc +++ b/src/mem/cache/compressors/fpc.cc @@ -95,9 +95,3 @@ FPC::instantiateDictionaryCompData() const } } // namespace Compressor - -Compressor::FPC* -FPCParams::create() const -{ - return new Compressor::FPC(*this); -} diff --git a/src/mem/cache/compressors/fpcd.cc b/src/mem/cache/compressors/fpcd.cc index 67a9129cc..f3d2d33ff 100644 --- a/src/mem/cache/compressors/fpcd.cc +++ b/src/mem/cache/compressors/fpcd.cc @@ -55,9 +55,3 @@ FPCD::addToDictionary(DictionaryEntry data) } } // namespace Compressor - -Compressor::FPCD* -FPCDParams::create() const -{ - return new Compressor::FPCD(*this); -} diff --git a/src/mem/cache/compressors/multi.cc b/src/mem/cache/compressors/multi.cc index 16d848cc7..52a4112c1 100644 --- a/src/mem/cache/compressors/multi.cc +++ b/src/mem/cache/compressors/multi.cc @@ -202,9 +202,3 @@ Multi::MultiStats::regStats() } } // namespace Compressor - -Compressor::Multi* -MultiCompressorParams::create() const -{ - return new Compressor::Multi(*this); -} diff --git a/src/mem/cache/compressors/perfect.cc b/src/mem/cache/compressors/perfect.cc index 54fb4061e..56b3fc0ab 100644 --- a/src/mem/cache/compressors/perfect.cc +++ b/src/mem/cache/compressors/perfect.cc @@ -73,9 +73,3 @@ Perfect::decompress(const CompressionData* comp_data, } } // namespace Compressor - -Compressor::Perfect* -PerfectCompressorParams::create() const -{ - return new Compressor::Perfect(*this); -} diff --git a/src/mem/cache/compressors/repeated_qwords.cc b/src/mem/cache/compressors/repeated_qwords.cc index 08020aae8..5187dbd46 100644 --- a/src/mem/cache/compressors/repeated_qwords.cc +++ b/src/mem/cache/compressors/repeated_qwords.cc @@ -78,9 +78,3 @@ RepeatedQwords::compress(const std::vector& chunks, } } // namespace Compressor - -Compressor::RepeatedQwords* -RepeatedQwordsCompressorParams::create() const -{ - return new Compressor::RepeatedQwords(*this); -} diff --git a/src/mem/cache/compressors/zero.cc b/src/mem/cache/compressors/zero.cc index ad36b6f19..152aea421 100644 --- a/src/mem/cache/compressors/zero.cc +++ b/src/mem/cache/compressors/zero.cc @@ -76,9 +76,3 @@ Zero::compress(const std::vector& chunks, Cycles& comp_lat, } } // namespace Compressor - -Compressor::Zero* -ZeroCompressorParams::create() const -{ - return new Compressor::Zero(*this); -} diff --git a/src/mem/cache/noncoherent_cache.cc b/src/mem/cache/noncoherent_cache.cc index 18a885a58..0810369b8 100644 --- a/src/mem/cache/noncoherent_cache.cc +++ b/src/mem/cache/noncoherent_cache.cc @@ -59,6 +59,8 @@ NoncoherentCache::NoncoherentCache(const NoncoherentCacheParams &p) : BaseCache(p, p.system->cacheLineSize()) { + assert(p.tags); + assert(p.replacement_policy); } void @@ -347,12 +349,3 @@ NoncoherentCache::evictBlock(CacheBlk *blk) return pkt; } - -NoncoherentCache* -NoncoherentCacheParams::create() const -{ - assert(tags); - assert(replacement_policy); - - return new NoncoherentCache(*this); -} diff --git a/src/mem/cache/prefetch/access_map_pattern_matching.cc b/src/mem/cache/prefetch/access_map_pattern_matching.cc index 6301c9d1b..ad101389f 100644 --- a/src/mem/cache/prefetch/access_map_pattern_matching.cc +++ b/src/mem/cache/prefetch/access_map_pattern_matching.cc @@ -264,15 +264,3 @@ AMPM::calculatePrefetch(const PrefetchInfo &pfi, } } // namespace Prefetcher - -Prefetcher::AccessMapPatternMatching* -AccessMapPatternMatchingParams::create() const -{ - return new Prefetcher::AccessMapPatternMatching(*this); -} - -Prefetcher::AMPM* -AMPMPrefetcherParams::create() const -{ - return new Prefetcher::AMPM(*this); -} diff --git a/src/mem/cache/prefetch/bop.cc b/src/mem/cache/prefetch/bop.cc index 1a5460be9..d8bd11089 100644 --- a/src/mem/cache/prefetch/bop.cc +++ b/src/mem/cache/prefetch/bop.cc @@ -261,9 +261,3 @@ BOP::notifyFill(const PacketPtr& pkt) } } // namespace Prefetcher - -Prefetcher::BOP* -BOPPrefetcherParams::create() const -{ - return new Prefetcher::BOP(*this); -} diff --git a/src/mem/cache/prefetch/delta_correlating_prediction_tables.cc b/src/mem/cache/prefetch/delta_correlating_prediction_tables.cc index 985fa5de1..6b7ee2ecc 100644 --- a/src/mem/cache/prefetch/delta_correlating_prediction_tables.cc +++ b/src/mem/cache/prefetch/delta_correlating_prediction_tables.cc @@ -158,15 +158,3 @@ DCPT::calculatePrefetch(const PrefetchInfo &pfi, } } // namespace Prefetcher - -Prefetcher::DeltaCorrelatingPredictionTables* -DeltaCorrelatingPredictionTablesParams::create() const -{ - return new Prefetcher::DeltaCorrelatingPredictionTables(*this); -} - -Prefetcher::DCPT* -DCPTPrefetcherParams::create() const -{ - return new Prefetcher::DCPT(*this); -} diff --git a/src/mem/cache/prefetch/indirect_memory.cc b/src/mem/cache/prefetch/indirect_memory.cc index 1ad0707a8..46443d247 100644 --- a/src/mem/cache/prefetch/indirect_memory.cc +++ b/src/mem/cache/prefetch/indirect_memory.cc @@ -255,9 +255,3 @@ IndirectMemory::checkAccessMatchOnActiveEntries(Addr addr) } } // namespace Prefetcher - -Prefetcher::IndirectMemory* -IndirectMemoryPrefetcherParams::create() const -{ - return new Prefetcher::IndirectMemory(*this); -} diff --git a/src/mem/cache/prefetch/irregular_stream_buffer.cc b/src/mem/cache/prefetch/irregular_stream_buffer.cc index 2e7c0b336..d73f46407 100644 --- a/src/mem/cache/prefetch/irregular_stream_buffer.cc +++ b/src/mem/cache/prefetch/irregular_stream_buffer.cc @@ -209,9 +209,3 @@ IrregularStreamBuffer::addStructuralToPhysicalEntry( } } // namespace Prefetcher - -Prefetcher::IrregularStreamBuffer* -IrregularStreamBufferPrefetcherParams::create() const -{ - return new Prefetcher::IrregularStreamBuffer(*this); -} diff --git a/src/mem/cache/prefetch/multi.cc b/src/mem/cache/prefetch/multi.cc index 9bddd4d04..251e0c624 100644 --- a/src/mem/cache/prefetch/multi.cc +++ b/src/mem/cache/prefetch/multi.cc @@ -80,9 +80,3 @@ Multi::getPacket() } } // namespace Prefetcher - -Prefetcher::Multi* -MultiPrefetcherParams::create() const -{ - return new Prefetcher::Multi(*this); -} diff --git a/src/mem/cache/prefetch/pif.cc b/src/mem/cache/prefetch/pif.cc index a73ba65d4..c349dac2e 100644 --- a/src/mem/cache/prefetch/pif.cc +++ b/src/mem/cache/prefetch/pif.cc @@ -244,9 +244,3 @@ PIF::addEventProbeRetiredInsts(SimObject *obj, const char *name) } } // namespace Prefetcher - -Prefetcher::PIF* -PIFPrefetcherParams::create() const -{ - return new Prefetcher::PIF(*this); -} diff --git a/src/mem/cache/prefetch/sbooe.cc b/src/mem/cache/prefetch/sbooe.cc index 5ab68c74b..980d010bf 100644 --- a/src/mem/cache/prefetch/sbooe.cc +++ b/src/mem/cache/prefetch/sbooe.cc @@ -133,9 +133,3 @@ SBOOE::calculatePrefetch(const PrefetchInfo &pfi, } } // namespace Prefetcher - -Prefetcher::SBOOE* -SBOOEPrefetcherParams::create() const -{ - return new Prefetcher::SBOOE(*this); -} diff --git a/src/mem/cache/prefetch/signature_path.cc b/src/mem/cache/prefetch/signature_path.cc index 207557fb7..cecd1f529 100644 --- a/src/mem/cache/prefetch/signature_path.cc +++ b/src/mem/cache/prefetch/signature_path.cc @@ -317,9 +317,3 @@ SignaturePath::auxiliaryPrefetcher(Addr ppn, stride_t current_block, } } // namespace Prefetcher - -Prefetcher::SignaturePath* -SignaturePathPrefetcherParams::create() const -{ - return new Prefetcher::SignaturePath(*this); -} diff --git a/src/mem/cache/prefetch/signature_path_v2.cc b/src/mem/cache/prefetch/signature_path_v2.cc index a4c9e03f6..1abb5ca67 100644 --- a/src/mem/cache/prefetch/signature_path_v2.cc +++ b/src/mem/cache/prefetch/signature_path_v2.cc @@ -129,9 +129,3 @@ SignaturePathV2::handlePageCrossingLookahead(signature_t signature, } } // namespace Prefetcher - -Prefetcher::SignaturePathV2* -SignaturePathPrefetcherV2Params::create() const -{ - return new Prefetcher::SignaturePathV2(*this); -} diff --git a/src/mem/cache/prefetch/slim_ampm.cc b/src/mem/cache/prefetch/slim_ampm.cc index 2119b6a2a..fe5347616 100644 --- a/src/mem/cache/prefetch/slim_ampm.cc +++ b/src/mem/cache/prefetch/slim_ampm.cc @@ -48,9 +48,3 @@ SlimAMPM::calculatePrefetch(const PrefetchInfo &pfi, } } // namespace Prefetcher - -Prefetcher::SlimAMPM* -SlimAMPMPrefetcherParams::create() const -{ - return new Prefetcher::SlimAMPM(*this); -} diff --git a/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc b/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc index 4c58ab083..53374a919 100644 --- a/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc +++ b/src/mem/cache/prefetch/spatio_temporal_memory_streaming.cc @@ -247,9 +247,3 @@ STeMS::reconstructSequence( } } // namespace Prefetcher - -Prefetcher::STeMS* -STeMSPrefetcherParams::create() const -{ - return new Prefetcher::STeMS(*this); -} diff --git a/src/mem/cache/prefetch/stride.cc b/src/mem/cache/prefetch/stride.cc index b7aa64d40..0020371c6 100644 --- a/src/mem/cache/prefetch/stride.cc +++ b/src/mem/cache/prefetch/stride.cc @@ -202,15 +202,3 @@ StridePrefetcherHashedSetAssociative::extractTag(const Addr addr) const } } // namespace Prefetcher - -Prefetcher::StridePrefetcherHashedSetAssociative* -StridePrefetcherHashedSetAssociativeParams::create() const -{ - return new Prefetcher::StridePrefetcherHashedSetAssociative(*this); -} - -Prefetcher::Stride* -StridePrefetcherParams::create() const -{ - return new Prefetcher::Stride(*this); -} diff --git a/src/mem/cache/prefetch/tagged.cc b/src/mem/cache/prefetch/tagged.cc index f626a8991..0e6e8dee8 100644 --- a/src/mem/cache/prefetch/tagged.cc +++ b/src/mem/cache/prefetch/tagged.cc @@ -56,9 +56,3 @@ Tagged::calculatePrefetch(const PrefetchInfo &pfi, } } // namespace Prefetcher - -Prefetcher::Tagged* -TaggedPrefetcherParams::create() const -{ - return new Prefetcher::Tagged(*this); -} diff --git a/src/mem/cache/replacement_policies/bip_rp.cc b/src/mem/cache/replacement_policies/bip_rp.cc index 06b31b6da..d45105dcb 100644 --- a/src/mem/cache/replacement_policies/bip_rp.cc +++ b/src/mem/cache/replacement_policies/bip_rp.cc @@ -57,9 +57,3 @@ BIP::reset(const std::shared_ptr& replacement_data) const } } // namespace ReplacementPolicy - -ReplacementPolicy::BIP* -BIPRPParams::create() const -{ - return new ReplacementPolicy::BIP(*this); -} diff --git a/src/mem/cache/replacement_policies/brrip_rp.cc b/src/mem/cache/replacement_policies/brrip_rp.cc index 2aeade138..76300e0f1 100644 --- a/src/mem/cache/replacement_policies/brrip_rp.cc +++ b/src/mem/cache/replacement_policies/brrip_rp.cc @@ -145,9 +145,3 @@ BRRIP::instantiateEntry() } } // namespace ReplacementPolicy - -ReplacementPolicy::BRRIP* -BRRIPRPParams::create() const -{ - return new ReplacementPolicy::BRRIP(*this); -} diff --git a/src/mem/cache/replacement_policies/fifo_rp.cc b/src/mem/cache/replacement_policies/fifo_rp.cc index 9d869732a..496d86a96 100644 --- a/src/mem/cache/replacement_policies/fifo_rp.cc +++ b/src/mem/cache/replacement_policies/fifo_rp.cc @@ -92,9 +92,3 @@ FIFO::instantiateEntry() } } // namespace ReplacementPolicy - -ReplacementPolicy::FIFO* -FIFORPParams::create() const -{ - return new ReplacementPolicy::FIFO(*this); -} diff --git a/src/mem/cache/replacement_policies/lfu_rp.cc b/src/mem/cache/replacement_policies/lfu_rp.cc index 054ef6173..a3cd96144 100644 --- a/src/mem/cache/replacement_policies/lfu_rp.cc +++ b/src/mem/cache/replacement_policies/lfu_rp.cc @@ -90,9 +90,3 @@ LFU::instantiateEntry() } } // namespace ReplacementPolicy - -ReplacementPolicy::LFU* -LFURPParams::create() const -{ - return new ReplacementPolicy::LFU(*this); -} diff --git a/src/mem/cache/replacement_policies/lru_rp.cc b/src/mem/cache/replacement_policies/lru_rp.cc index 798c96497..fd8970394 100644 --- a/src/mem/cache/replacement_policies/lru_rp.cc +++ b/src/mem/cache/replacement_policies/lru_rp.cc @@ -94,9 +94,3 @@ LRU::instantiateEntry() } } // namespace ReplacementPolicy - -ReplacementPolicy::LRU* -LRURPParams::create() const -{ - return new ReplacementPolicy::LRU(*this); -} diff --git a/src/mem/cache/replacement_policies/mru_rp.cc b/src/mem/cache/replacement_policies/mru_rp.cc index 1dab0653f..cc2016bd0 100644 --- a/src/mem/cache/replacement_policies/mru_rp.cc +++ b/src/mem/cache/replacement_policies/mru_rp.cc @@ -99,9 +99,3 @@ MRU::instantiateEntry() } } // namespace ReplacementPolicy - -ReplacementPolicy::MRU* -MRURPParams::create() const -{ - return new ReplacementPolicy::MRU(*this); -} diff --git a/src/mem/cache/replacement_policies/random_rp.cc b/src/mem/cache/replacement_policies/random_rp.cc index 959baafbc..8f81c1c11 100644 --- a/src/mem/cache/replacement_policies/random_rp.cc +++ b/src/mem/cache/replacement_policies/random_rp.cc @@ -93,9 +93,3 @@ Random::instantiateEntry() } } // namespace ReplacementPolicy - -ReplacementPolicy::Random* -RandomRPParams::create() const -{ - return new ReplacementPolicy::Random(*this); -} diff --git a/src/mem/cache/replacement_policies/second_chance_rp.cc b/src/mem/cache/replacement_policies/second_chance_rp.cc index a55994e41..0f8c39205 100644 --- a/src/mem/cache/replacement_policies/second_chance_rp.cc +++ b/src/mem/cache/replacement_policies/second_chance_rp.cc @@ -134,9 +134,3 @@ SecondChance::instantiateEntry() } } // namespace ReplacementPolicy - -ReplacementPolicy::SecondChance* -SecondChanceRPParams::create() const -{ - return new ReplacementPolicy::SecondChance(*this); -} diff --git a/src/mem/cache/replacement_policies/tree_plru_rp.cc b/src/mem/cache/replacement_policies/tree_plru_rp.cc index ada9eeedb..9f50261f8 100644 --- a/src/mem/cache/replacement_policies/tree_plru_rp.cc +++ b/src/mem/cache/replacement_policies/tree_plru_rp.cc @@ -212,9 +212,3 @@ TreePLRU::instantiateEntry() } } // namespace ReplacementPolicy - -ReplacementPolicy::TreePLRU* -TreePLRURPParams::create() const -{ - return new ReplacementPolicy::TreePLRU(*this); -} diff --git a/src/mem/cache/replacement_policies/weighted_lru_rp.cc b/src/mem/cache/replacement_policies/weighted_lru_rp.cc index 5b45e32cc..0e2043d8a 100644 --- a/src/mem/cache/replacement_policies/weighted_lru_rp.cc +++ b/src/mem/cache/replacement_policies/weighted_lru_rp.cc @@ -122,9 +122,3 @@ WeightedLRU::invalidate(const std::shared_ptr& } } // namespace ReplacementPolicy - -ReplacementPolicy::WeightedLRU* -WeightedLRURPParams::create() const -{ - return new ReplacementPolicy::WeightedLRU(*this); -} diff --git a/src/mem/cache/tags/base_set_assoc.cc b/src/mem/cache/tags/base_set_assoc.cc index cc2fac62b..6507007a7 100644 --- a/src/mem/cache/tags/base_set_assoc.cc +++ b/src/mem/cache/tags/base_set_assoc.cc @@ -54,6 +54,9 @@ BaseSetAssoc::BaseSetAssoc(const Params &p) sequentialAccess(p.sequential_access), replacementPolicy(p.replacement_policy) { + // There must be a indexing policy + fatal_if(!p.indexing_policy, "An indexing policy is required"); + // Check parameters if (blkSize < 4 || !isPowerOf2(blkSize)) { fatal("Block size must be at least 4 and a power of 2"); @@ -90,12 +93,3 @@ BaseSetAssoc::invalidate(CacheBlk *blk) // Invalidate replacement data replacementPolicy->invalidate(blk->replacementData); } - -BaseSetAssoc * -BaseSetAssocParams::create() const -{ - // There must be a indexing policy - fatal_if(!indexing_policy, "An indexing policy is required"); - - return new BaseSetAssoc(*this); -} diff --git a/src/mem/cache/tags/compressed_tags.cc b/src/mem/cache/tags/compressed_tags.cc index 64a7102d1..780c738f9 100644 --- a/src/mem/cache/tags/compressed_tags.cc +++ b/src/mem/cache/tags/compressed_tags.cc @@ -204,9 +204,3 @@ CompressedTags::anyBlk(std::function visitor) } return false; } - -CompressedTags * -CompressedTagsParams::create() const -{ - return new CompressedTags(*this); -} diff --git a/src/mem/cache/tags/fa_lru.cc b/src/mem/cache/tags/fa_lru.cc index fc69bda64..78d601d77 100644 --- a/src/mem/cache/tags/fa_lru.cc +++ b/src/mem/cache/tags/fa_lru.cc @@ -279,12 +279,6 @@ FALRU::moveToTail(FALRUBlk *blk) } } -FALRU * -FALRUParams::create() const -{ - return new FALRU(*this); -} - void FALRU::CacheTracking::check(const FALRUBlk *head, const FALRUBlk *tail) const { diff --git a/src/mem/cache/tags/indexing_policies/set_associative.cc b/src/mem/cache/tags/indexing_policies/set_associative.cc index ab4a86feb..d08b8079c 100644 --- a/src/mem/cache/tags/indexing_policies/set_associative.cc +++ b/src/mem/cache/tags/indexing_policies/set_associative.cc @@ -71,9 +71,3 @@ SetAssociative::getPossibleEntries(const Addr addr) const { return sets[extractSet(addr)]; } - -SetAssociative* -SetAssociativeParams::create() const -{ - return new SetAssociative(*this); -} diff --git a/src/mem/cache/tags/indexing_policies/skewed_associative.cc b/src/mem/cache/tags/indexing_policies/skewed_associative.cc index 5938916c6..62af87ef4 100644 --- a/src/mem/cache/tags/indexing_policies/skewed_associative.cc +++ b/src/mem/cache/tags/indexing_policies/skewed_associative.cc @@ -216,9 +216,3 @@ SkewedAssociative::getPossibleEntries(const Addr addr) const return entries; } - -SkewedAssociative * -SkewedAssociativeParams::create() const -{ - return new SkewedAssociative(*this); -} diff --git a/src/mem/cache/tags/sector_tags.cc b/src/mem/cache/tags/sector_tags.cc index aa6cb24ac..8a4b86f90 100644 --- a/src/mem/cache/tags/sector_tags.cc +++ b/src/mem/cache/tags/sector_tags.cc @@ -54,6 +54,9 @@ SectorTags::SectorTags(const SectorTagsParams &p) sectorShift(floorLog2(blkSize)), sectorMask(numBlocksPerSector - 1), sectorStats(stats, *this) { + // There must be a indexing policy + fatal_if(!p.indexing_policy, "An indexing policy is required"); + // Check parameters fatal_if(blkSize < 4 || !isPowerOf2(blkSize), "Block size must be at least 4 and a power of 2"); @@ -323,12 +326,3 @@ SectorTags::anyBlk(std::function visitor) } return false; } - -SectorTags * -SectorTagsParams::create() const -{ - // There must be a indexing policy - fatal_if(!indexing_policy, "An indexing policy is required"); - - return new SectorTags(*this); -} diff --git a/src/mem/coherent_xbar.cc b/src/mem/coherent_xbar.cc index cbab90632..002d1b50f 100644 --- a/src/mem/coherent_xbar.cc +++ b/src/mem/coherent_xbar.cc @@ -1117,9 +1117,3 @@ CoherentXBar::regStats() snoopFanout.init(0, snoopPorts.size(), 1); } - -CoherentXBar * -CoherentXBarParams::create() const -{ - return new CoherentXBar(*this); -} diff --git a/src/mem/comm_monitor.cc b/src/mem/comm_monitor.cc index 99edd99d8..297837ab1 100644 --- a/src/mem/comm_monitor.cc +++ b/src/mem/comm_monitor.cc @@ -57,12 +57,6 @@ CommMonitor::CommMonitor(const Params ¶ms) name(), samplePeriodTicks, samplePeriod * 1E3); } -CommMonitor* -CommMonitorParams::create() const -{ - return new CommMonitor(*this); -} - void CommMonitor::init() { diff --git a/src/mem/dramsim2.cc b/src/mem/dramsim2.cc index 0eaf33687..5c5c64ae5 100644 --- a/src/mem/dramsim2.cc +++ b/src/mem/dramsim2.cc @@ -387,9 +387,3 @@ DRAMSim2::MemoryPort::recvRespRetry() { memory.recvRespRetry(); } - -DRAMSim2* -DRAMSim2Params::create() const -{ - return new DRAMSim2(*this); -} diff --git a/src/mem/dramsim3.cc b/src/mem/dramsim3.cc index 36bd371d6..fe5a3ba4f 100644 --- a/src/mem/dramsim3.cc +++ b/src/mem/dramsim3.cc @@ -387,9 +387,3 @@ DRAMsim3::MemoryPort::recvRespRetry() { memory.recvRespRetry(); } - -DRAMsim3* -DRAMsim3Params::create() const -{ - return new DRAMsim3(*this); -} diff --git a/src/mem/external_master.cc b/src/mem/external_master.cc index d7a081f6c..2af175d16 100644 --- a/src/mem/external_master.cc +++ b/src/mem/external_master.cc @@ -93,12 +93,6 @@ ExternalMaster::init() } } -ExternalMaster * -ExternalMasterParams::create() const -{ - return new ExternalMaster(*this); -} - void ExternalMaster::registerHandler(const std::string &handler_name, Handler *handler) diff --git a/src/mem/external_slave.cc b/src/mem/external_slave.cc index 1559a3c61..11f8d221e 100644 --- a/src/mem/external_slave.cc +++ b/src/mem/external_slave.cc @@ -230,12 +230,6 @@ ExternalSlave::init() } } -ExternalSlave * -ExternalSlaveParams::create() const -{ - return new ExternalSlave(*this); -} - void ExternalSlave::registerHandler(const std::string &handler_name, Handler *handler) diff --git a/src/mem/hmc_controller.cc b/src/mem/hmc_controller.cc index 55017dad1..b9487c5c6 100644 --- a/src/mem/hmc_controller.cc +++ b/src/mem/hmc_controller.cc @@ -12,12 +12,6 @@ HMCController::HMCController(const HMCControllerParams &p) : assert(p.port_cpu_side_ports_connection_count == 1); } -HMCController* -HMCControllerParams::create() const -{ - return new HMCController(*this); -} - // Since this module is a load distributor, all its request ports have the same // range so we should keep only one of the ranges and ignore the others void HMCController::recvRangeChange(PortID mem_side_port_id) diff --git a/src/mem/mem_checker.cc b/src/mem/mem_checker.cc index c6d916420..f4f24d442 100644 --- a/src/mem/mem_checker.cc +++ b/src/mem/mem_checker.cc @@ -343,9 +343,3 @@ MemChecker::reset(Addr addr, size_t size) byte_trackers.erase(addr + i); } } - -MemChecker* -MemCheckerParams::create() const -{ - return new MemChecker(*this); -} diff --git a/src/mem/mem_checker_monitor.cc b/src/mem/mem_checker_monitor.cc index 6a975f37a..8f343e592 100644 --- a/src/mem/mem_checker_monitor.cc +++ b/src/mem/mem_checker_monitor.cc @@ -55,12 +55,6 @@ MemCheckerMonitor::MemCheckerMonitor(const Params ¶ms) MemCheckerMonitor::~MemCheckerMonitor() {} -MemCheckerMonitor* -MemCheckerMonitorParams::create() const -{ - return new MemCheckerMonitor(*this); -} - void MemCheckerMonitor::init() { diff --git a/src/mem/mem_ctrl.cc b/src/mem/mem_ctrl.cc index 76d2e9759..1e60ced3f 100644 --- a/src/mem/mem_ctrl.cc +++ b/src/mem/mem_ctrl.cc @@ -1467,9 +1467,3 @@ MemCtrl::MemoryPort::recvTimingReq(PacketPtr pkt) // pass it to the memory controller return ctrl.recvTimingReq(pkt); } - -MemCtrl* -MemCtrlParams::create() const -{ - return new MemCtrl(*this); -} diff --git a/src/mem/mem_delay.cc b/src/mem/mem_delay.cc index f51dd2fe6..d5db9f25f 100644 --- a/src/mem/mem_delay.cc +++ b/src/mem/mem_delay.cc @@ -209,10 +209,3 @@ SimpleMemDelay::delayResp(PacketPtr pkt) return 0; } } - - -SimpleMemDelay * -SimpleMemDelayParams::create() const -{ - return new SimpleMemDelay(*this); -} diff --git a/src/mem/mem_interface.cc b/src/mem/mem_interface.cc index 8aa8cef88..c86683e6f 100644 --- a/src/mem/mem_interface.cc +++ b/src/mem/mem_interface.cc @@ -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) diff --git a/src/mem/noncoherent_xbar.cc b/src/mem/noncoherent_xbar.cc index 2b82ca784..d9e56c170 100644 --- a/src/mem/noncoherent_xbar.cc +++ b/src/mem/noncoherent_xbar.cc @@ -310,9 +310,3 @@ NoncoherentXBar::recvFunctional(PacketPtr pkt, PortID cpu_side_port_id) // forward the request to the appropriate destination memSidePorts[dest_id]->sendFunctional(pkt); } - -NoncoherentXBar* -NoncoherentXBarParams::create() const -{ - return new NoncoherentXBar(*this); -} diff --git a/src/mem/probes/mem_footprint.cc b/src/mem/probes/mem_footprint.cc index eb684a75e..7e38fad45 100644 --- a/src/mem/probes/mem_footprint.cc +++ b/src/mem/probes/mem_footprint.cc @@ -120,9 +120,3 @@ MemFootprintProbe::statReset() cacheLines.clear(); pages.clear(); } - -MemFootprintProbe * -MemFootprintProbeParams::create() const -{ - return new MemFootprintProbe(*this); -} diff --git a/src/mem/probes/mem_trace.cc b/src/mem/probes/mem_trace.cc index 351b2da32..067401471 100644 --- a/src/mem/probes/mem_trace.cc +++ b/src/mem/probes/mem_trace.cc @@ -118,10 +118,3 @@ MemTraceProbe::handleRequest(const ProbePoints::PacketInfo &pkt_info) traceStream->write(pkt_msg); } - - -MemTraceProbe * -MemTraceProbeParams::create() const -{ - return new MemTraceProbe(*this); -} diff --git a/src/mem/probes/stack_dist.cc b/src/mem/probes/stack_dist.cc index ec2be989f..57f919999 100644 --- a/src/mem/probes/stack_dist.cc +++ b/src/mem/probes/stack_dist.cc @@ -128,10 +128,3 @@ StackDistProbe::handleRequest(const ProbePoints::PacketInfo &pkt_info) writeLogHist.sample(sd_lg2); } } - - -StackDistProbe * -StackDistProbeParams::create() const -{ - return new StackDistProbe(*this); -} diff --git a/src/mem/qos/mem_sink.cc b/src/mem/qos/mem_sink.cc index db4f881e0..9d57500b8 100644 --- a/src/mem/qos/mem_sink.cc +++ b/src/mem/qos/mem_sink.cc @@ -389,19 +389,7 @@ MemSinkCtrl::MemoryPort::recvTimingReq(PacketPtr pkt) } // namespace QoS -QoS::MemSinkCtrl* -QoSMemSinkCtrlParams::create() const -{ - return new QoS::MemSinkCtrl(*this); -} - QoSMemSinkInterface::QoSMemSinkInterface(const QoSMemSinkInterfaceParams &_p) : AbstractMemory(_p) { } - -QoSMemSinkInterface* -QoSMemSinkInterfaceParams::create() const -{ - return new QoSMemSinkInterface(*this); -} diff --git a/src/mem/qos/policy_fixed_prio.cc b/src/mem/qos/policy_fixed_prio.cc index 124d49a2f..70979401f 100644 --- a/src/mem/qos/policy_fixed_prio.cc +++ b/src/mem/qos/policy_fixed_prio.cc @@ -94,9 +94,3 @@ FixedPriorityPolicy::schedule(const RequestorID id, const uint64_t data) } } // namespace QoS - -QoS::FixedPriorityPolicy * -QoSFixedPriorityPolicyParams::create() const -{ - return new QoS::FixedPriorityPolicy(*this); -} diff --git a/src/mem/qos/policy_pf.cc b/src/mem/qos/policy_pf.cc index 988749d82..db9fc5e11 100644 --- a/src/mem/qos/policy_pf.cc +++ b/src/mem/qos/policy_pf.cc @@ -122,9 +122,3 @@ PropFairPolicy::schedule(const RequestorID pkt_id, const uint64_t pkt_size) } } // namespace QoS - -QoS::PropFairPolicy * -QoSPropFairPolicyParams::create() const -{ - return new QoS::PropFairPolicy(*this); -} diff --git a/src/mem/qos/turnaround_policy_ideal.cc b/src/mem/qos/turnaround_policy_ideal.cc index 22b12e084..5114a97d3 100644 --- a/src/mem/qos/turnaround_policy_ideal.cc +++ b/src/mem/qos/turnaround_policy_ideal.cc @@ -96,9 +96,3 @@ TurnaroundPolicyIdeal::selectBusState() } } // namespace QoS - -QoS::TurnaroundPolicyIdeal * -QoSTurnaroundPolicyIdealParams::create() const -{ - return new QoS::TurnaroundPolicyIdeal(*this); -} diff --git a/src/mem/ruby/network/BasicLink.cc b/src/mem/ruby/network/BasicLink.cc index c5311ae02..613b6ed8b 100644 --- a/src/mem/ruby/network/BasicLink.cc +++ b/src/mem/ruby/network/BasicLink.cc @@ -48,30 +48,12 @@ BasicLink::print(std::ostream& out) const out << name(); } -BasicLink * -BasicLinkParams::create() const -{ - return new BasicLink(*this); -} - BasicExtLink::BasicExtLink(const Params &p) : BasicLink(p) { } -BasicExtLink * -BasicExtLinkParams::create() const -{ - return new BasicExtLink(*this); -} - BasicIntLink::BasicIntLink(const Params &p) : BasicLink(p) { } - -BasicIntLink * -BasicIntLinkParams::create() const -{ - return new BasicIntLink(*this); -} diff --git a/src/mem/ruby/network/BasicRouter.cc b/src/mem/ruby/network/BasicRouter.cc index 450ca3630..8895ae8cb 100644 --- a/src/mem/ruby/network/BasicRouter.cc +++ b/src/mem/ruby/network/BasicRouter.cc @@ -45,9 +45,3 @@ BasicRouter::print(std::ostream& out) const { out << name(); } - -BasicRouter * -BasicRouterParams::create() const -{ - return new BasicRouter(*this); -} diff --git a/src/mem/ruby/network/MessageBuffer.cc b/src/mem/ruby/network/MessageBuffer.cc index b3631f192..fad1fcaa0 100644 --- a/src/mem/ruby/network/MessageBuffer.cc +++ b/src/mem/ruby/network/MessageBuffer.cc @@ -528,9 +528,3 @@ MessageBuffer::functionalAccess(Packet *pkt, bool is_read) return num_functional_accesses; } - -MessageBuffer * -MessageBufferParams::create() const -{ - return new MessageBuffer(*this); -} diff --git a/src/mem/ruby/network/fault_model/FaultModel.cc b/src/mem/ruby/network/fault_model/FaultModel.cc index 147b73611..599e85786 100644 --- a/src/mem/ruby/network/fault_model/FaultModel.cc +++ b/src/mem/ruby/network/fault_model/FaultModel.cc @@ -267,9 +267,3 @@ FaultModel::print(void) cout << "\n"; } } - -FaultModel * -FaultModelParams::create() const -{ - return new FaultModel(*this); -} diff --git a/src/mem/ruby/network/garnet/GarnetLink.cc b/src/mem/ruby/network/garnet/GarnetLink.cc index 0bbc5b1c7..42dc394ce 100644 --- a/src/mem/ruby/network/garnet/GarnetLink.cc +++ b/src/mem/ruby/network/garnet/GarnetLink.cc @@ -86,12 +86,6 @@ GarnetIntLink::print(std::ostream& out) const out << name(); } -GarnetIntLink * -GarnetIntLinkParams::create() const -{ - return new GarnetIntLink(*this); -} - GarnetExtLink::GarnetExtLink(const Params &p) : BasicExtLink(p) { @@ -159,9 +153,3 @@ GarnetExtLink::print(std::ostream& out) const { out << name(); } - -GarnetExtLink * -GarnetExtLinkParams::create() const -{ - return new GarnetExtLink(*this); -} diff --git a/src/mem/ruby/network/garnet/GarnetNetwork.cc b/src/mem/ruby/network/garnet/GarnetNetwork.cc index ec7331851..e23500b4f 100644 --- a/src/mem/ruby/network/garnet/GarnetNetwork.cc +++ b/src/mem/ruby/network/garnet/GarnetNetwork.cc @@ -556,12 +556,6 @@ GarnetNetwork::print(ostream& out) const out << "[GarnetNetwork]"; } -GarnetNetwork * -GarnetNetworkParams::create() const -{ - return new GarnetNetwork(*this); -} - uint32_t GarnetNetwork::functionalWrite(Packet *pkt) { diff --git a/src/mem/ruby/network/garnet/NetworkBridge.cc b/src/mem/ruby/network/garnet/NetworkBridge.cc index ec23aea86..c0dcefa46 100644 --- a/src/mem/ruby/network/garnet/NetworkBridge.cc +++ b/src/mem/ruby/network/garnet/NetworkBridge.cc @@ -263,9 +263,3 @@ NetworkBridge::wakeup() } assert(!link_srcQueue->getSize()); } - -NetworkBridge * -NetworkBridgeParams::create() const -{ - return new NetworkBridge(*this); -} diff --git a/src/mem/ruby/network/garnet/NetworkInterface.cc b/src/mem/ruby/network/garnet/NetworkInterface.cc index e6c22000c..1dd3da994 100644 --- a/src/mem/ruby/network/garnet/NetworkInterface.cc +++ b/src/mem/ruby/network/garnet/NetworkInterface.cc @@ -671,9 +671,3 @@ NetworkInterface::functionalWrite(Packet *pkt) } return num_functional_writes; } - -NetworkInterface * -GarnetNetworkInterfaceParams::create() const -{ - return new NetworkInterface(*this); -} diff --git a/src/mem/ruby/network/garnet/NetworkLink.cc b/src/mem/ruby/network/garnet/NetworkLink.cc index 24c23c127..8634e7d1c 100644 --- a/src/mem/ruby/network/garnet/NetworkLink.cc +++ b/src/mem/ruby/network/garnet/NetworkLink.cc @@ -110,18 +110,6 @@ NetworkLink::resetStats() m_link_utilized = 0; } -NetworkLink * -NetworkLinkParams::create() const -{ - return new NetworkLink(*this); -} - -CreditLink * -CreditLinkParams::create() const -{ - return new CreditLink(*this); -} - uint32_t NetworkLink::functionalWrite(Packet *pkt) { diff --git a/src/mem/ruby/network/garnet/Router.cc b/src/mem/ruby/network/garnet/Router.cc index 311564fc5..6bec93f7b 100644 --- a/src/mem/ruby/network/garnet/Router.cc +++ b/src/mem/ruby/network/garnet/Router.cc @@ -283,9 +283,3 @@ Router::functionalWrite(Packet *pkt) return num_functional_writes; } - -Router * -GarnetRouterParams::create() const -{ - return new Router(*this); -} diff --git a/src/mem/ruby/network/simple/SimpleLink.cc b/src/mem/ruby/network/simple/SimpleLink.cc index 70437624f..52d5822a6 100644 --- a/src/mem/ruby/network/simple/SimpleLink.cc +++ b/src/mem/ruby/network/simple/SimpleLink.cc @@ -44,12 +44,6 @@ SimpleExtLink::print(std::ostream& out) const out << name(); } -SimpleExtLink * -SimpleExtLinkParams::create() const -{ - return new SimpleExtLink(*this); -} - SimpleIntLink::SimpleIntLink(const Params &p) : BasicIntLink(p) { @@ -65,9 +59,3 @@ SimpleIntLink::print(std::ostream& out) const { out << name(); } - -SimpleIntLink * -SimpleIntLinkParams::create() const -{ - return new SimpleIntLink(*this); -} diff --git a/src/mem/ruby/network/simple/SimpleNetwork.cc b/src/mem/ruby/network/simple/SimpleNetwork.cc index 86d043210..3a15a57a9 100644 --- a/src/mem/ruby/network/simple/SimpleNetwork.cc +++ b/src/mem/ruby/network/simple/SimpleNetwork.cc @@ -179,12 +179,6 @@ SimpleNetwork::print(ostream& out) const out << "[SimpleNetwork]"; } -SimpleNetwork * -SimpleNetworkParams::create() const -{ - return new SimpleNetwork(*this); -} - /* * The simple network has an array of switches. These switches have buffers * that need to be accessed for functional reads and writes. Also the links diff --git a/src/mem/ruby/network/simple/Switch.cc b/src/mem/ruby/network/simple/Switch.cc index 67b452413..68887ac8f 100644 --- a/src/mem/ruby/network/simple/Switch.cc +++ b/src/mem/ruby/network/simple/Switch.cc @@ -183,9 +183,3 @@ Switch::functionalWrite(Packet *pkt) } return num_functional_writes; } - -Switch * -SwitchParams::create() const -{ - return new Switch(*this); -} diff --git a/src/mem/ruby/structures/CacheMemory.cc b/src/mem/ruby/structures/CacheMemory.cc index 51a38c495..62e6022bc 100644 --- a/src/mem/ruby/structures/CacheMemory.cc +++ b/src/mem/ruby/structures/CacheMemory.cc @@ -62,12 +62,6 @@ operator<<(ostream& out, const CacheMemory& obj) return out; } -CacheMemory * -RubyCacheParams::create() const -{ - return new CacheMemory(*this); -} - CacheMemory::CacheMemory(const Params &p) : SimObject(p), dataArray(p.dataArrayBanks, p.dataAccessLatency, diff --git a/src/mem/ruby/structures/DirectoryMemory.cc b/src/mem/ruby/structures/DirectoryMemory.cc index bfb661147..82bc83399 100644 --- a/src/mem/ruby/structures/DirectoryMemory.cc +++ b/src/mem/ruby/structures/DirectoryMemory.cc @@ -158,9 +158,3 @@ DirectoryMemory::recordRequestType(DirectoryRequestType requestType) { DPRINTF(RubyStats, "Recorded statistic: %s\n", DirectoryRequestType_to_string(requestType)); } - -DirectoryMemory * -RubyDirectoryMemoryParams::create() const -{ - return new DirectoryMemory(*this); -} diff --git a/src/mem/ruby/structures/RubyPrefetcher.cc b/src/mem/ruby/structures/RubyPrefetcher.cc index 04225c843..feee1abde 100644 --- a/src/mem/ruby/structures/RubyPrefetcher.cc +++ b/src/mem/ruby/structures/RubyPrefetcher.cc @@ -48,12 +48,6 @@ #include "mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh" #include "mem/ruby/system/RubySystem.hh" -RubyPrefetcher* -RubyPrefetcherParams::create() const -{ - return new RubyPrefetcher(*this); -} - RubyPrefetcher::RubyPrefetcher(const Params &p) : SimObject(p), m_num_streams(p.num_streams), m_array(p.num_streams), m_train_misses(p.train_misses), diff --git a/src/mem/ruby/structures/WireBuffer.cc b/src/mem/ruby/structures/WireBuffer.cc index 1d91463db..c57405be6 100644 --- a/src/mem/ruby/structures/WireBuffer.cc +++ b/src/mem/ruby/structures/WireBuffer.cc @@ -141,9 +141,3 @@ void WireBuffer::wakeup() { } - -WireBuffer * -RubyWireBufferParams::create() const -{ - return new WireBuffer(*this); -} diff --git a/src/mem/ruby/system/DMASequencer.cc b/src/mem/ruby/system/DMASequencer.cc index 62b24eda1..538e2b442 100644 --- a/src/mem/ruby/system/DMASequencer.cc +++ b/src/mem/ruby/system/DMASequencer.cc @@ -199,9 +199,3 @@ DMASequencer::recordRequestType(DMASequencerRequestType requestType) DPRINTF(RubyStats, "Recorded statistic: %s\n", DMASequencerRequestType_to_string(requestType)); } - -DMASequencer * -DMASequencerParams::create() const -{ - return new DMASequencer(*this); -} diff --git a/src/mem/ruby/system/HTMSequencer.cc b/src/mem/ruby/system/HTMSequencer.cc index 8c6afd04f..2f24be638 100644 --- a/src/mem/ruby/system/HTMSequencer.cc +++ b/src/mem/ruby/system/HTMSequencer.cc @@ -62,12 +62,6 @@ HTMSequencer::htmRetCodeConversion( } } -HTMSequencer * -RubyHTMSequencerParams::create() const -{ - return new HTMSequencer(*this); -} - HTMSequencer::HTMSequencer(const RubyHTMSequencerParams &p) : Sequencer(p) { diff --git a/src/mem/ruby/system/RubyPortProxy.cc b/src/mem/ruby/system/RubyPortProxy.cc index 2badffa64..4d0ac688f 100644 --- a/src/mem/ruby/system/RubyPortProxy.cc +++ b/src/mem/ruby/system/RubyPortProxy.cc @@ -61,9 +61,3 @@ RubyPortProxy::makeRequest(PacketPtr pkt) panic("RubyPortProxy::makeRequest should not be called"); return RequestStatus_NULL; } - -RubyPortProxy* -RubyPortProxyParams::create() const -{ - return new RubyPortProxy(*this); -} diff --git a/src/mem/ruby/system/RubySystem.cc b/src/mem/ruby/system/RubySystem.cc index 8a6c35417..e4078ec7c 100644 --- a/src/mem/ruby/system/RubySystem.cc +++ b/src/mem/ruby/system/RubySystem.cc @@ -638,9 +638,3 @@ RubySystem::functionalWrite(PacketPtr pkt) return true; } - -RubySystem * -RubySystemParams::create() const -{ - return new RubySystem(*this); -} diff --git a/src/mem/ruby/system/Sequencer.cc b/src/mem/ruby/system/Sequencer.cc index 27fb2575f..407d27015 100644 --- a/src/mem/ruby/system/Sequencer.cc +++ b/src/mem/ruby/system/Sequencer.cc @@ -61,12 +61,6 @@ using namespace std; -Sequencer * -RubySequencerParams::create() const -{ - return new Sequencer(*this); -} - Sequencer::Sequencer(const Params &p) : RubyPort(p), m_IncompleteTimes(MachineType_NUM), deadlockCheckEvent([this]{ wakeup(); }, "Sequencer deadlock check") diff --git a/src/mem/ruby/system/VIPERCoalescer.cc b/src/mem/ruby/system/VIPERCoalescer.cc index f0873a42a..69add1b98 100644 --- a/src/mem/ruby/system/VIPERCoalescer.cc +++ b/src/mem/ruby/system/VIPERCoalescer.cc @@ -53,12 +53,6 @@ using namespace std; -VIPERCoalescer * -VIPERCoalescerParams::create() const -{ - return new VIPERCoalescer(*this); -} - VIPERCoalescer::VIPERCoalescer(const Params &p) : GPUCoalescer(p), m_cache_inv_pkt(nullptr), diff --git a/src/mem/serial_link.cc b/src/mem/serial_link.cc index 1b07770d6..12309ef56 100644 --- a/src/mem/serial_link.cc +++ b/src/mem/serial_link.cc @@ -420,9 +420,3 @@ SerialLink::SerialLinkResponsePort::getAddrRanges() const { return ranges; } - -SerialLink * -SerialLinkParams::create() const -{ - return new SerialLink(*this); -} diff --git a/src/mem/simple_mem.cc b/src/mem/simple_mem.cc index 80e4cb392..3ed3d04f3 100644 --- a/src/mem/simple_mem.cc +++ b/src/mem/simple_mem.cc @@ -301,9 +301,3 @@ SimpleMemory::MemoryPort::recvRespRetry() { memory.recvRespRetry(); } - -SimpleMemory* -SimpleMemoryParams::create() const -{ - return new SimpleMemory(*this); -} diff --git a/src/mem/slicc/symbols/StateMachine.py b/src/mem/slicc/symbols/StateMachine.py index 371b40e1b..c4601bb6d 100644 --- a/src/mem/slicc/symbols/StateMachine.py +++ b/src/mem/slicc/symbols/StateMachine.py @@ -539,12 +539,6 @@ using namespace std; num_in_ports = len(self.in_ports) code(''' -$c_ident * -${c_ident}Params::create() const -{ - return new $c_ident(*this); -} - int $c_ident::m_num_controllers = 0; std::vector $c_ident::eventVec; std::vector > $c_ident::transVec; diff --git a/src/mem/snoop_filter.cc b/src/mem/snoop_filter.cc index 7fa1f4e99..7ced30c51 100644 --- a/src/mem/snoop_filter.cc +++ b/src/mem/snoop_filter.cc @@ -420,9 +420,3 @@ SnoopFilter::regStats() .desc("Number of snoops hitting in the snoop filter with multiple "\ "(>1) holders of the requested data."); } - -SnoopFilter * -SnoopFilterParams::create() const -{ - return new SnoopFilter(*this); -} diff --git a/src/sim/clock_domain.cc b/src/sim/clock_domain.cc index e591b8c1d..61d565472 100644 --- a/src/sim/clock_domain.cc +++ b/src/sim/clock_domain.cc @@ -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); -} diff --git a/src/sim/dvfs_handler.cc b/src/sim/dvfs_handler.cc index 224acde03..38ca35cef 100644 --- a/src/sim/dvfs_handler.cc +++ b/src/sim/dvfs_handler.cc @@ -251,9 +251,3 @@ DVFSHandler::unserialize(CheckpointIn &cp) } UpdateEvent::dvfsHandler = this; } - -DVFSHandler* -DVFSHandlerParams::create() const -{ - return new DVFSHandler(*this); -} diff --git a/src/sim/kernel_workload.cc b/src/sim/kernel_workload.cc index 9791dfc22..14e8b02e0 100644 --- a/src/sim/kernel_workload.cc +++ b/src/sim/kernel_workload.cc @@ -135,9 +135,3 @@ KernelWorkload::unserialize(CheckpointIn &cp) { kernelSymtab.unserialize("symtab", cp); } - -KernelWorkload * -KernelWorkloadParams::create() const -{ - return new KernelWorkload(*this); -} diff --git a/src/sim/power/mathexpr_powermodel.cc b/src/sim/power/mathexpr_powermodel.cc index 2f48034be..4f3f92735 100644 --- a/src/sim/power/mathexpr_powermodel.cc +++ b/src/sim/power/mathexpr_powermodel.cc @@ -113,9 +113,3 @@ MathExprPowerModel::regStats() { PowerModelState::regStats(); } - -MathExprPowerModel* -MathExprPowerModelParams::create() const -{ - return new MathExprPowerModel(*this); -} diff --git a/src/sim/power/power_model.cc b/src/sim/power/power_model.cc index fa179e088..fa531e056 100644 --- a/src/sim/power/power_model.cc +++ b/src/sim/power/power_model.cc @@ -87,12 +87,6 @@ PowerModel::regProbePoints() )); } -PowerModel* -PowerModelParams::create() const -{ - return new PowerModel(*this); -} - double PowerModel::getDynamicPower() const { diff --git a/src/sim/power/thermal_domain.cc b/src/sim/power/thermal_domain.cc index 11a9ca969..0b5bedd57 100644 --- a/src/sim/power/thermal_domain.cc +++ b/src/sim/power/thermal_domain.cc @@ -88,12 +88,6 @@ ThermalDomain::emitUpdate() ppThermalUpdate->notify(node->temp); } -ThermalDomain * -ThermalDomainParams::create() const -{ - return new ThermalDomain(*this); -} - void ThermalDomain::serialize(CheckpointOut &cp) const { diff --git a/src/sim/power/thermal_model.cc b/src/sim/power/thermal_model.cc index c6a50ad47..65649e513 100644 --- a/src/sim/power/thermal_model.cc +++ b/src/sim/power/thermal_model.cc @@ -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 { diff --git a/src/sim/power/thermal_node.cc b/src/sim/power/thermal_node.cc index d2d05e619..c8806d9a6 100644 --- a/src/sim/power/thermal_node.cc +++ b/src/sim/power/thermal_node.cc @@ -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); -} diff --git a/src/sim/power_domain.cc b/src/sim/power_domain.cc index c7a6b0899..c6e0d3510 100644 --- a/src/sim/power_domain.cc +++ b/src/sim/power_domain.cc @@ -263,9 +263,3 @@ PowerDomain::PowerDomainStats::regStats() .flags(Stats::nozero) ; } - -PowerDomain* -PowerDomainParams::create() const -{ - return new PowerDomain(*this); -} diff --git a/src/sim/power_state.cc b/src/sim/power_state.cc index 37ab87fac..a11ed430b 100644 --- a/src/sim/power_state.cc +++ b/src/sim/power_state.cc @@ -273,9 +273,3 @@ PowerState::PowerStateStats::preDumpStats() */ powerState.computeStats(); } - -PowerState* -PowerStateParams::create() const -{ - return new PowerState(*this); -} diff --git a/src/sim/probe/probe.cc b/src/sim/probe/probe.cc index 27067adab..b764db0b0 100644 --- a/src/sim/probe/probe.cc +++ b/src/sim/probe/probe.cc @@ -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) { diff --git a/src/sim/redirect_path.cc b/src/sim/redirect_path.cc index 912c4585a..f270057c2 100644 --- a/src/sim/redirect_path.cc +++ b/src/sim/redirect_path.cc @@ -53,9 +53,3 @@ RedirectPath::RedirectPath(const RedirectPathParams &p) _hostPaths.push_back(normalizePath(hp)); } } - -RedirectPath* -RedirectPathParams::create() const -{ - return new RedirectPath(*this); -} diff --git a/src/sim/se_workload.cc b/src/sim/se_workload.cc index 2cd383897..a596bd8f6 100644 --- a/src/sim/se_workload.cc +++ b/src/sim/se_workload.cc @@ -39,9 +39,3 @@ SEWorkload::syscall(ThreadContext *tc) { tc->getProcessPtr()->syscall(tc); } - -SEWorkload * -SEWorkloadParams::create() const -{ - return new SEWorkload(*this); -} diff --git a/src/sim/sub_system.cc b/src/sim/sub_system.cc index 2c0b1aa35..e54354171 100644 --- a/src/sim/sub_system.cc +++ b/src/sim/sub_system.cc @@ -66,9 +66,3 @@ SubSystem::getStaticPower() const ret += obj->getStaticPower(); return ret; } - -SubSystem * -SubSystemParams::create() const -{ - return new SubSystem(*this); -} diff --git a/src/sim/system.cc b/src/sim/system.cc index 46b92622b..d31238c34 100644 --- a/src/sim/system.cc +++ b/src/sim/system.cc @@ -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); -} diff --git a/src/sim/voltage_domain.cc b/src/sim/voltage_domain.cc index 14d7c869f..f6f839627 100644 --- a/src/sim/voltage_domain.cc +++ b/src/sim/voltage_domain.cc @@ -124,12 +124,6 @@ VoltageDomain::startup() { } } -VoltageDomain * -VoltageDomainParams::create() const -{ - return new VoltageDomain(*this); -} - void VoltageDomain::serialize(CheckpointOut &cp) const {