diff options
-rw-r--r-- | src/arch/arm/fastmodel/arm/FastModelArch.py | 2 | ||||
-rw-r--r-- | src/arch/arm/fastmodel/arm/cpu.cc | 11 | ||||
-rw-r--r-- | src/arch/arm/fastmodel/arm/cpu.hh | 26 |
3 files changed, 1 insertions, 38 deletions
diff --git a/src/arch/arm/fastmodel/arm/FastModelArch.py b/src/arch/arm/fastmodel/arm/FastModelArch.py index efc40b2d8..b2869563f 100644 --- a/src/arch/arm/fastmodel/arm/FastModelArch.py +++ b/src/arch/arm/fastmodel/arm/FastModelArch.py @@ -36,5 +36,3 @@ class FastModelArmCPU(IrisArmCPU): cxx_header = 'arch/arm/fastmodel/arm/cpu.hh' cntfrq = Param.UInt64("Value for the CNTFRQ timer register") - - mem = RequestPort('Port for port proxies to attach to.') diff --git a/src/arch/arm/fastmodel/arm/cpu.cc b/src/arch/arm/fastmodel/arm/cpu.cc index 47420368f..c87c2ac5f 100644 --- a/src/arch/arm/fastmodel/arm/cpu.cc +++ b/src/arch/arm/fastmodel/arm/cpu.cc @@ -35,8 +35,7 @@ namespace FastModel { ArmCPU::ArmCPU(FastModelArmCPUParams *params) : - Iris::ArmCPU(params, scx::scx_get_iris_connection_interface()), - mem(name() + ".mem", this) + Iris::ArmCPU(params, scx::scx_get_iris_connection_interface()) { } @@ -48,14 +47,6 @@ ArmCPU::initState() tc->setMiscRegNoEffect(ArmISA::MISCREG_CNTFRQ_EL0, cntfrq); } -Port & -ArmCPU::getPort(const std::string &if_name, PortID idx) -{ - if (if_name == "mem") - return mem; - return Iris::ArmCPU::getPort(if_name, idx); -} - } // namespace FastModel FastModel::ArmCPU * diff --git a/src/arch/arm/fastmodel/arm/cpu.hh b/src/arch/arm/fastmodel/arm/cpu.hh index 1d9d585c3..379174ec3 100644 --- a/src/arch/arm/fastmodel/arm/cpu.hh +++ b/src/arch/arm/fastmodel/arm/cpu.hh @@ -39,36 +39,10 @@ namespace FastModel // This class adds non-Iris, gem5 functionality to this CPU model. class ArmCPU : public Iris::ArmCPU { - private: - class MemPort : public MasterPort - { - public: - using MasterPort::MasterPort; - - bool - recvTimingResp(PacketPtr pkt) override - { - panic("%s.%s not implemented.\n", name(), __FUNCTION__); - } - - void - recvReqRetry() override - { - panic("%s.%s not implemented.\n", name(), __FUNCTION__); - } - }; - - MemPort mem; - public: ArmCPU(FastModelArmCPUParams *params); void initState() override; - Port &getPort(const std::string &if_name, - PortID idx=InvalidPortID) override; - - Port &getDataPort() override { return mem; } - Port &getInstPort() override { return mem; } }; } // namespace FastModel |