cpu: update port terminology
authorEmily Brickey <esbrickey@ucdavis.edu>
Tue, 4 Aug 2020 19:21:18 +0000 (12:21 -0700)
committerShivani Parekh <shparekh@ucdavis.edu>
Wed, 26 Aug 2020 16:48:13 +0000 (16:48 +0000)
Change-Id: I891e7a74683c1775c75a62454fcfdecb7511b7e9
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32312
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
29 files changed:
src/cpu/BaseCPU.py
src/cpu/base.hh
src/cpu/checker/cpu.cc
src/cpu/checker/cpu.hh
src/cpu/kvm/base.hh
src/cpu/minor/cpu.hh
src/cpu/o3/fetch.hh
src/cpu/o3/lsq.hh
src/cpu/o3/lsq_unit.hh
src/cpu/o3/lsq_unit_impl.hh
src/cpu/simple/atomic.cc
src/cpu/simple/atomic.hh
src/cpu/simple/noncaching.cc
src/cpu/simple/noncaching.hh
src/cpu/simple/timing.hh
src/cpu/testers/directedtest/InvalidateGenerator.cc
src/cpu/testers/directedtest/RubyDirectedTester.cc
src/cpu/testers/directedtest/RubyDirectedTester.hh
src/cpu/testers/directedtest/SeriesRequestGenerator.cc
src/cpu/testers/garnet_synthetic_traffic/GarnetSyntheticTraffic.hh
src/cpu/testers/garnet_synthetic_traffic/GarnetSyntheticTraffic.py
src/cpu/testers/memtest/MemTest.py
src/cpu/testers/memtest/memtest.hh
src/cpu/testers/rubytest/Check.cc
src/cpu/testers/rubytest/RubyTester.cc
src/cpu/testers/rubytest/RubyTester.hh
src/cpu/testers/traffic_gen/BaseTrafficGen.py
src/cpu/testers/traffic_gen/base.hh
src/cpu/trace/trace_cpu.hh

index 96e96fc719e621d4e1a3432299d6dd1b6cc09fa0..ee6c6461d857f606f8f7c392a759245d93ca9cc9 100644 (file)
@@ -175,8 +175,8 @@ class BaseCPU(ClockedObject):
 
     tracer = Param.InstTracer(default_tracer, "Instruction tracer")
 
-    icache_port = MasterPort("Instruction Port")
-    dcache_port = MasterPort("Data Port")
+    icache_port = RequestPort("Instruction Port")
+    dcache_port = RequestPort("Data Port")
     _cached_ports = ['icache_port', 'dcache_port']
 
     if buildEnv['TARGET_ISA'] in ['x86', 'arm', 'riscv']:
index a00e83dc7930c5ea8f936e873282eb6a95b6a70d..5c0c709cd801f662f91d88c72f087a1853498ed2 100644 (file)
@@ -162,7 +162,7 @@ class BaseCPU : public ClockedObject
     virtual PortProxy::SendFunctionalFunc
     getSendFunctional()
     {
-        auto port = dynamic_cast<MasterPort *>(&getDataPort());
+        auto port = dynamic_cast<RequestPort *>(&getDataPort());
         assert(port);
         return [port](PacketPtr pkt)->void { port->sendFunctional(pkt); };
     }
index d9d6d7efa6b4fe1a480b43077b1638131fbf948e..b016938c9e6f7bd1790a2af3db5fb8858d27b295 100644 (file)
@@ -113,13 +113,13 @@ CheckerCPU::setSystem(System *system)
 }
 
 void
-CheckerCPU::setIcachePort(MasterPort *icache_port)
+CheckerCPU::setIcachePort(RequestPort *icache_port)
 {
     icachePort = icache_port;
 }
 
 void
-CheckerCPU::setDcachePort(MasterPort *dcache_port)
+CheckerCPU::setDcachePort(RequestPort *dcache_port)
 {
     dcachePort = dcache_port;
 }
index 6bd702276f92d1132c30779b70bcdfff4f8b53c6..3c040648a78dbbd6ec65cdc03dd40dbbf653cd77 100644 (file)
@@ -99,9 +99,9 @@ class CheckerCPU : public BaseCPU, public ExecContext
 
     void setSystem(System *system);
 
-    void setIcachePort(MasterPort *icache_port);
+    void setIcachePort(RequestPort *icache_port);
 
-    void setDcachePort(MasterPort *dcache_port);
+    void setDcachePort(RequestPort *dcache_port);
 
     Port &
     getDataPort() override
@@ -127,8 +127,8 @@ class CheckerCPU : public BaseCPU, public ExecContext
 
     System *systemPtr;
 
-    MasterPort *icachePort;
-    MasterPort *dcachePort;
+    RequestPort *icachePort;
+    RequestPort *dcachePort;
 
     ThreadContext *tc;
 
index eff7a3c26fefd21af8fd0100e245c0baac3bf924..e999499caa28bc1d0100c4b6e26a25592f803ba2 100644 (file)
@@ -572,15 +572,15 @@ class BaseKvmCPU : public BaseCPU
 
 
     /**
-     * KVM memory port.  Uses default MasterPort behavior and provides an
+     * KVM memory port.  Uses default RequestPort behavior and provides an
      * interface for KVM to transparently submit atomic or timing requests.
      */
-    class KVMCpuPort : public MasterPort
+    class KVMCpuPort : public RequestPort
     {
 
       public:
         KVMCpuPort(const std::string &_name, BaseKvmCPU *_cpu)
-            : MasterPort(_name, _cpu), cpu(_cpu), activeMMIOReqs(0)
+            : RequestPort(_name, _cpu), cpu(_cpu), activeMMIOReqs(0)
         { }
         /**
          * Interface to send Atomic or Timing IO request.  Assumes that the pkt
index b8ca087f5f85c2f799236a0519a7e9b41a9a52a7..579a96b0543f9e1bcc722d98d760600a43043fec 100644 (file)
@@ -95,7 +95,7 @@ class MinorCPU : public BaseCPU
   public:
     /** Provide a non-protected base class for Minor's Ports as derived
      *  classes are created by Fetch1 and Execute */
-    class MinorCPUPort : public MasterPort
+    class MinorCPUPort : public RequestPort
     {
       public:
         /** The enclosing cpu */
@@ -103,7 +103,7 @@ class MinorCPU : public BaseCPU
 
       public:
         MinorCPUPort(const std::string& name_, MinorCPU &cpu_)
-            : MasterPort(name_, &cpu_), cpu(cpu_)
+            : RequestPort(name_, &cpu_), cpu(cpu_)
         { }
 
     };
index 9939a00c9a190feca18928f5ba61e2f1f55b4757..77c6336bd7a0a1c2eead0f14650c93a25a8c9c1d 100644 (file)
@@ -87,7 +87,7 @@ class DefaultFetch
     /**
      * IcachePort class for instruction fetch.
      */
-    class IcachePort : public MasterPort
+    class IcachePort : public RequestPort
     {
       protected:
         /** Pointer to fetch. */
@@ -96,7 +96,7 @@ class DefaultFetch
       public:
         /** Default constructor. */
         IcachePort(DefaultFetch<Impl> *_fetch, FullO3CPU<Impl>* _cpu)
-            : MasterPort(_cpu->name() + ".icache_port", _cpu), fetch(_fetch)
+            : RequestPort(_cpu->name() + ".icache_port", _cpu), fetch(_fetch)
         { }
 
       protected:
@@ -377,7 +377,7 @@ class DefaultFetch
     /** The decoder. */
     TheISA::Decoder *decoder[Impl::MaxThreads];
 
-    MasterPort &getInstPort() { return icachePort; }
+    RequestPort &getInstPort() { return icachePort; }
 
   private:
     DynInstPtr buildInst(ThreadID tid, StaticInstPtr staticInst,
index 9fa7ed5864d14dfa674b7020d579fb39b47da1f6..9ef3b0ce8f5100d6fd90b0d075b881e52893ee82 100644 (file)
@@ -119,7 +119,7 @@ class LSQ
     /**
      * DcachePort class for the load/store queue.
      */
-    class DcachePort : public MasterPort
+    class DcachePort : public RequestPort
     {
       protected:
 
@@ -130,7 +130,7 @@ class LSQ
       public:
         /** Default constructor. */
         DcachePort(LSQ<Impl> *_lsq, FullO3CPU<Impl>* _cpu)
-            : MasterPort(_cpu->name() + ".dcache_port", _cpu), lsq(_lsq),
+            : RequestPort(_cpu->name() + ".dcache_port", _cpu), lsq(_lsq),
               cpu(_cpu)
         { }
 
@@ -1053,7 +1053,7 @@ class LSQ
     /** Another store port is in use */
     void cachePortBusy(bool is_load);
 
-    MasterPort &getDataPort() { return dcachePort; }
+    RequestPort &getDataPort() { return dcachePort; }
 
   protected:
     /** D-cache is blocked */
index e0cb68b247709654949f2a2aa8676010663e1b62..16dddfd18197e9bf45ec9070566033fae268845c 100644 (file)
@@ -238,7 +238,7 @@ class LSQUnit
     void regStats();
 
     /** Sets the pointer to the dcache port. */
-    void setDcachePort(MasterPort *dcache_port);
+    void setDcachePort(RequestPort *dcache_port);
 
     /** Perform sanity checks after a drain. */
     void drainSanityCheck() const;
@@ -398,7 +398,7 @@ class LSQUnit
     LSQ *lsq;
 
     /** Pointer to the dcache port.  Used only for sending. */
-    MasterPort *dcachePort;
+    RequestPort *dcachePort;
 
     /** Particularisation of the LSQSenderState to the LQ. */
     class LQSenderState : public LSQSenderState
index 7383c6f9fe952ab776d13ee65d9e3b93b3489942..c39f8943d59c25c70789cd34cf0d8f0bf74bf435 100644 (file)
@@ -245,7 +245,7 @@ LSQUnit<Impl>::regStats()
 
 template<class Impl>
 void
-LSQUnit<Impl>::setDcachePort(MasterPort *dcache_port)
+LSQUnit<Impl>::setDcachePort(RequestPort *dcache_port)
 {
     dcachePort = dcache_port;
 }
index d7a914ae0a2da266bfaa259eadd9893f102b2ba7..34be352d9c02106a920b1c7f0aa622e0664fc056 100644 (file)
@@ -272,7 +272,7 @@ AtomicSimpleCPU::suspendContext(ThreadID thread_num)
 }
 
 Tick
-AtomicSimpleCPU::sendPacket(MasterPort &port, const PacketPtr &pkt)
+AtomicSimpleCPU::sendPacket(RequestPort &port, const PacketPtr &pkt)
 {
     return port.sendAtomic(pkt);
 }
index 53fe0fca4511e943d4391eaa662d2a1e6387ee19..7333e1ff44f67f2a17b86d2c9d9a984ca0b92b00 100644 (file)
@@ -101,7 +101,7 @@ class AtomicSimpleCPU : public BaseSimpleCPU
      */
     bool tryCompleteDrain();
 
-    virtual Tick sendPacket(MasterPort &port, const PacketPtr &pkt);
+    virtual Tick sendPacket(RequestPort &port, const PacketPtr &pkt);
 
     /**
      * An AtomicCPUPort overrides the default behaviour of the
@@ -109,13 +109,13 @@ class AtomicSimpleCPU : public BaseSimpleCPU
      * also provides an implementation for the purely virtual timing
      * functions and panics on either of these.
      */
-    class AtomicCPUPort : public MasterPort
+    class AtomicCPUPort : public RequestPort
     {
 
       public:
 
         AtomicCPUPort(const std::string &_name, BaseSimpleCPU* _cpu)
-            : MasterPort(_name, _cpu)
+            : RequestPort(_name, _cpu)
         { }
 
       protected:
index 2596d791cbae2185e8ad9c81fcccfcea79f63627..34e1ce2a2ccb53a96fdc331ce8d56d676b73e9f2 100644 (file)
@@ -52,7 +52,7 @@ NonCachingSimpleCPU::verifyMemoryMode() const
 }
 
 Tick
-NonCachingSimpleCPU::sendPacket(MasterPort &port, const PacketPtr &pkt)
+NonCachingSimpleCPU::sendPacket(RequestPort &port, const PacketPtr &pkt)
 {
     if (system->isMemAddr(pkt->getAddr())) {
         system->getPhysMem().access(pkt);
index bfedff5e6f3ce66d3999bfbf98d1c31d263690c0..f57fef2febe788f1db8f7b13912e0564ff83c7e4 100644 (file)
@@ -53,7 +53,7 @@ class NonCachingSimpleCPU : public AtomicSimpleCPU
     void verifyMemoryMode() const override;
 
   protected:
-    Tick sendPacket(MasterPort &port, const PacketPtr &pkt) override;
+    Tick sendPacket(RequestPort &port, const PacketPtr &pkt) override;
 };
 
 #endif // __CPU_SIMPLE_NONCACHING_HH__
index c8bd05e545ac3ed3a6dadb7ef99707256f183fee..2bb0fe643a76b8c4b49ddd3fc4467f0935569761 100644 (file)
@@ -155,12 +155,12 @@ class TimingSimpleCPU : public BaseSimpleCPU
      * scheduling of handling of incoming packets in the following
      * cycle.
      */
-    class TimingCPUPort : public MasterPort
+    class TimingCPUPort : public RequestPort
     {
       public:
 
         TimingCPUPort(const std::string& _name, TimingSimpleCPU* _cpu)
-            : MasterPort(_name, _cpu), cpu(_cpu),
+            : RequestPort(_name, _cpu), cpu(_cpu),
               retryRespEvent([this]{ sendRetryResp(); }, name())
         { }
 
index 9351d91c4077aae5bb8318706e627657c0ae36e5..5640163fdbb5e7da62edd0e7af0ea3f02559f7fc 100644 (file)
@@ -54,7 +54,7 @@ InvalidateGenerator::~InvalidateGenerator()
 bool
 InvalidateGenerator::initiate()
 {
-    MasterPort* port;
+    RequestPort* port;
     Request::Flags flags;
     PacketPtr pkt;
     Packet::Command cmd;
index afe2b14470d1b5af6802ae8c1e5782d014ea4f49..2bed14b7137da6623f284c224fd4355a2df4952f 100644 (file)
@@ -105,7 +105,7 @@ RubyDirectedTester::CpuPort::recvTimingResp(PacketPtr pkt)
     return true;
 }
 
-MasterPort*
+RequestPort*
 RubyDirectedTester::getCpuPort(int idx)
 {
     assert(idx >= 0 && idx < ports.size());
index f0c694e827b803e650fbdf6bb1a2f86e680d08b6..de3e154cfec403a0fb9f6d050584eade363f56b9 100644 (file)
@@ -47,7 +47,7 @@ class DirectedGenerator;
 class RubyDirectedTester : public ClockedObject
 {
   public:
-    class CpuPort : public MasterPort
+    class CpuPort : public RequestPort
     {
       private:
         RubyDirectedTester *tester;
@@ -55,7 +55,7 @@ class RubyDirectedTester : public ClockedObject
       public:
         CpuPort(const std::string &_name, RubyDirectedTester *_tester,
                 PortID _id)
-            : MasterPort(_name, _tester, _id), tester(_tester)
+            : RequestPort(_name, _tester, _id), tester(_tester)
         {}
 
       protected:
@@ -71,7 +71,7 @@ class RubyDirectedTester : public ClockedObject
     Port &getPort(const std::string &if_name,
                   PortID idx=InvalidPortID) override;
 
-    MasterPort* getCpuPort(int idx);
+    RequestPort* getCpuPort(int idx);
 
     void init() override;
 
@@ -98,7 +98,7 @@ class RubyDirectedTester : public ClockedObject
     RubyDirectedTester& operator=(const RubyDirectedTester& obj);
 
     uint64_t m_requests_completed;
-    std::vector<MasterPort*> ports;
+    std::vector<RequestPort*> ports;
     uint64_t m_requests_to_complete;
     DirectedGenerator* generator;
 };
index e5b7656d9f890c799ea86121232100eafce41556..562b7d59053a336bd90c9e06105e5a479031e301 100644 (file)
@@ -55,7 +55,7 @@ SeriesRequestGenerator::initiate()
     DPRINTF(DirectedTest, "initiating request\n");
     assert(m_status == SeriesRequestGeneratorStatus_Thinking);
 
-    MasterPort* port = m_directed_tester->getCpuPort(m_active_node);
+    RequestPort* port = m_directed_tester->getCpuPort(m_active_node);
 
     Request::Flags flags;
 
index df10f170081aec0ff3e5154c6e2d05fe4b39b9fb..524a960cb86b4b16a46eebb8be8afb2153fae327 100644 (file)
@@ -74,14 +74,14 @@ class GarnetSyntheticTraffic : public ClockedObject
   protected:
     EventFunctionWrapper tickEvent;
 
-    class CpuPort : public MasterPort
+    class CpuPort : public RequestPort
     {
         GarnetSyntheticTraffic *tester;
 
       public:
 
         CpuPort(const std::string &_name, GarnetSyntheticTraffic *_tester)
-            : MasterPort(_name, _tester), tester(_tester)
+            : RequestPort(_name, _tester), tester(_tester)
         { }
 
       protected:
index 616cab4586ccdfcd81fb278ab1a6466cffc8d0c2..8ad00b64256a9917a7ada32c5171b7828a640d29 100644 (file)
@@ -51,5 +51,5 @@ class GarnetSyntheticTraffic(ClockedObject):
                               after decimal point")
     response_limit = Param.Cycles(5000000, "Cycles before exiting \
                                             due to lack of progress")
-    test = MasterPort("Port to the memory system to test")
+    test = RequestPort("Port to the memory system to test")
     system = Param.System(Parent.any, "System we belong to")
index 36bc9295118dd95790cb41aa6baaa3b492ae0008..eebcd971be75a652f1d5b2b0f2da5e9997f913f0 100644 (file)
@@ -64,7 +64,7 @@ class MemTest(ClockedObject):
     progress_check = Param.Cycles(5000000, "Cycles before exiting " \
                                       "due to lack of progress")
 
-    port = MasterPort("Port to the memory system")
+    port = RequestPort("Port to the memory system")
     system = Param.System(Parent.any, "System this tester is part of")
 
     # Add the ability to supress error responses on functional
index fa13c0a494700b85232ad5af8c103f88cb207d80..86b27a4ac9643df6e1fd0100d410b86aea166d8f 100644 (file)
@@ -91,14 +91,14 @@ class MemTest : public ClockedObject
 
     EventFunctionWrapper noResponseEvent;
 
-    class CpuPort : public MasterPort
+    class CpuPort : public RequestPort
     {
         MemTest &memtest;
 
       public:
 
         CpuPort(const std::string &_name, MemTest &_memtest)
-            : MasterPort(_name, &_memtest), memtest(_memtest)
+            : RequestPort(_name, &_memtest), memtest(_memtest)
         { }
 
       protected:
index 90e7b877e81af00960368835ace9c7c0dbded1c1..e3732bf5ecb9ff26fa74198fb7f32856903f2553 100644 (file)
@@ -84,7 +84,7 @@ Check::initiatePrefetch()
     DPRINTF(RubyTest, "initiating prefetch\n");
 
     int index = random_mt.random(0, m_num_readers - 1);
-    MasterPort* port = m_tester_ptr->getReadableCpuPort(index);
+    RequestPort* port = m_tester_ptr->getReadableCpuPort(index);
 
     Request::Flags flags;
     flags.set(Request::PREFETCH);
@@ -142,7 +142,7 @@ Check::initiateFlush()
     DPRINTF(RubyTest, "initiating Flush\n");
 
     int index = random_mt.random(0, m_num_writers - 1);
-    MasterPort* port = m_tester_ptr->getWritableCpuPort(index);
+    RequestPort* port = m_tester_ptr->getWritableCpuPort(index);
 
     Request::Flags flags;
 
@@ -172,7 +172,7 @@ Check::initiateAction()
     assert(m_status == TesterStatus_Idle);
 
     int index = random_mt.random(0, m_num_writers - 1);
-    MasterPort* port = m_tester_ptr->getWritableCpuPort(index);
+    RequestPort* port = m_tester_ptr->getWritableCpuPort(index);
 
     Request::Flags flags;
 
@@ -233,7 +233,7 @@ Check::initiateCheck()
     assert(m_status == TesterStatus_Ready);
 
     int index = random_mt.random(0, m_num_readers - 1);
-    MasterPort* port = m_tester_ptr->getReadableCpuPort(index);
+    RequestPort* port = m_tester_ptr->getReadableCpuPort(index);
 
     Request::Flags flags;
 
index 30af475865a2bbb5f5073cf99ec8e3db0d22258e..8dfe994792017049cf180483c37059fd3d0fdf05 100644 (file)
@@ -203,7 +203,7 @@ RubyTester::isInstDataCpuPort(int idx)
             (idx < (m_num_inst_only_ports + m_num_inst_data_ports)));
 }
 
-MasterPort*
+RequestPort*
 RubyTester::getReadableCpuPort(int idx)
 {
     assert(idx >= 0 && idx < readPorts.size());
@@ -211,7 +211,7 @@ RubyTester::getReadableCpuPort(int idx)
     return readPorts[idx];
 }
 
-MasterPort*
+RequestPort*
 RubyTester::getWritableCpuPort(int idx)
 {
     assert(idx >= 0 && idx < writePorts.size());
index 4ac553b4ce8238b22796c4c55a0ac86ceeafa957..e63729ab5c2af4d702e3d9067fbc589abdc30464 100644 (file)
@@ -57,7 +57,7 @@
 class RubyTester : public ClockedObject
 {
   public:
-    class CpuPort : public MasterPort
+    class CpuPort : public RequestPort
     {
       private:
         RubyTester *tester;
@@ -73,7 +73,7 @@ class RubyTester : public ClockedObject
 
         CpuPort(const std::string &_name, RubyTester *_tester, PortID _id,
                 PortID _index)
-            : MasterPort(_name, _tester, _id), tester(_tester),
+            : RequestPort(_name, _tester, _id), tester(_tester),
               globalIdx(_index)
         {}
 
@@ -101,8 +101,8 @@ class RubyTester : public ClockedObject
     bool isInstOnlyCpuPort(int idx);
     bool isInstDataCpuPort(int idx);
 
-    MasterPort* getReadableCpuPort(int idx);
-    MasterPort* getWritableCpuPort(int idx);
+    RequestPort* getReadableCpuPort(int idx);
+    RequestPort* getWritableCpuPort(int idx);
 
     void init() override;
 
@@ -137,8 +137,8 @@ class RubyTester : public ClockedObject
 
     int m_num_cpus;
     uint64_t m_checks_completed;
-    std::vector<MasterPort*> writePorts;
-    std::vector<MasterPort*> readPorts;
+    std::vector<RequestPort*> writePorts;
+    std::vector<RequestPort*> readPorts;
     uint64_t m_checks_to_complete;
     int m_deadlock_threshold;
     int m_num_writers;
index 0dda4ecfe1d23c07e69b94b6dc5cf05a13dcdc9e..ff50a19ba9f5508893f45946a100f7d18a4cf3a5 100644 (file)
@@ -57,7 +57,7 @@ class BaseTrafficGen(ClockedObject):
     cxx_header = "cpu/testers/traffic_gen/traffic_gen.hh"
 
     # Port used for sending requests and receiving responses
-    port = MasterPort("Master port")
+    port = RequestPort("Master port")
 
     # System used to determine the mode of the memory system
     system = Param.System(Parent.any, "System this generator is part of")
index 5205c3af5be9bda0db732f131d9fdf81aa99a975..17b1aa1cfc41d8d2b5a47779ec417585c5d0efad 100644 (file)
@@ -124,12 +124,12 @@ class BaseTrafficGen : public ClockedObject
 
 
     /** Master port specialisation for the traffic generator */
-    class TrafficGenPort : public MasterPort
+    class TrafficGenPort : public RequestPort
     {
       public:
 
         TrafficGenPort(const std::string& name, BaseTrafficGen& traffic_gen)
-            : MasterPort(name, &traffic_gen), trafficGen(traffic_gen)
+            : RequestPort(name, &traffic_gen), trafficGen(traffic_gen)
         { }
 
       protected:
index 0781c19cb251f6bcd6b53a5eb51cc68d9f53bc21..cd292fbb0f9dadd0d35d5082cbb1945eed449dd0 100644 (file)
@@ -221,12 +221,12 @@ class TraceCPU : public BaseCPU
     /**
      * IcachePort class that interfaces with L1 Instruction Cache.
      */
-    class IcachePort : public MasterPort
+    class IcachePort : public RequestPort
     {
       public:
         /** Default constructor. */
         IcachePort(TraceCPU* _cpu)
-            : MasterPort(_cpu->name() + ".icache_port", _cpu),
+            : RequestPort(_cpu->name() + ".icache_port", _cpu),
                          owner(_cpu)
         { }
 
@@ -261,13 +261,13 @@ class TraceCPU : public BaseCPU
     /**
      * DcachePort class that interfaces with L1 Data Cache.
      */
-    class DcachePort : public MasterPort
+    class DcachePort : public RequestPort
     {
 
       public:
         /** Default constructor. */
         DcachePort(TraceCPU* _cpu)
-            : MasterPort(_cpu->name() + ".dcache_port", _cpu),
+            : RequestPort(_cpu->name() + ".dcache_port", _cpu),
                          owner(_cpu)
         { }
 
@@ -423,7 +423,7 @@ class TraceCPU : public BaseCPU
         public:
         /* Constructor */
         FixedRetryGen(TraceCPU& _owner, const std::string& _name,
-                   MasterPort& _port, MasterID master_id,
+                   RequestPort& _port, MasterID master_id,
                    const std::string& trace_file)
             : owner(_owner),
               port(_port),
@@ -501,7 +501,7 @@ class TraceCPU : public BaseCPU
         TraceCPU& owner;
 
         /** Reference of the port to be used to issue memory requests. */
-        MasterPort& port;
+        RequestPort& port;
 
         /** MasterID used for the requests being sent. */
         const MasterID masterID;
@@ -847,7 +847,7 @@ class TraceCPU : public BaseCPU
         public:
         /* Constructor */
         ElasticDataGen(TraceCPU& _owner, const std::string& _name,
-                   MasterPort& _port, MasterID master_id,
+                   RequestPort& _port, MasterID master_id,
                    const std::string& trace_file, TraceCPUParams *params)
             : owner(_owner),
               port(_port),
@@ -984,7 +984,7 @@ class TraceCPU : public BaseCPU
         TraceCPU& owner;
 
         /** Reference of the port to be used to issue memory requests. */
-        MasterPort& port;
+        RequestPort& port;
 
         /** MasterID used for the requests being sent. */
         const MasterID masterID;