arch: update port terminology
authorEmily Brickey <esbrickey@ucdavis.edu>
Tue, 4 Aug 2020 19:20:06 +0000 (12:20 -0700)
committerShivani Parekh <shparekh@ucdavis.edu>
Wed, 26 Aug 2020 16:48:13 +0000 (16:48 +0000)
Change-Id: Ifcf90534d8e5ff5fc68538ec87dc541517ea404d
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32311
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/ArmTLB.py
src/arch/generic/BaseTLB.py
src/arch/riscv/RiscvTLB.py
src/arch/riscv/pagetable_walker.hh
src/arch/x86/X86LocalApic.py
src/arch/x86/X86TLB.py
src/arch/x86/pagetable_walker.hh

index 721d0623afff3c9a9dd12b607599176a68666749..a821a048d7270959660b47f1a39bfdee9a00d50e 100644 (file)
@@ -54,7 +54,7 @@ class ArmTableWalker(ClockedObject):
     # to the Stage2MMU, and shared by the two table walkers, but we
     # access it through the ITB and DTB walked objects in the CPU for
     # symmetry with the other ISAs.
-    port = MasterPort("Port used by the two table walkers")
+    port = RequestPort("Port used by the two table walkers")
 
     sys = Param.System(Parent.any, "system object parameter")
 
index 02776e6adab4ae3b98556bd00cab3f7ebce49f53..cca7da6a52d3402c772ec0c61c9802daf385c5fd 100644 (file)
@@ -34,4 +34,4 @@ class BaseTLB(SimObject):
     cxx_header = "arch/generic/tlb.hh"
     # Ports to connect with other TLB levels
     slave  = VectorSlavePort("Port closer to the CPU side")
-    master = MasterPort("Port closer to memory side")
+    master = RequestPort("Port closer to memory side")
index 884b71fa4de7d46804adb54759105e765601e4c4..4844febc6c25d25ef6fe569ac444866a08482225 100644 (file)
@@ -37,7 +37,7 @@ class RiscvPagetableWalker(ClockedObject):
     type = 'RiscvPagetableWalker'
     cxx_class = 'RiscvISA::Walker'
     cxx_header = 'arch/riscv/pagetable_walker.hh'
-    port = MasterPort("Port for the hardware table walker")
+    port = RequestPort("Port for the hardware table walker")
     system = Param.System(Parent.any, "system object")
     num_squash_per_cycle = Param.Unsigned(4,
             "Number of outstanding walks that can be squashed per cycle")
index 60826a055ccfa7abf5a901991dc14a03868f2917..d9ab569c7dccc3bdf730f33326e1e370f5c9db02 100644 (file)
@@ -58,11 +58,11 @@ namespace RiscvISA
     {
       protected:
         // Port for accessing memory
-        class WalkerPort : public MasterPort
+        class WalkerPort : public RequestPort
         {
           public:
             WalkerPort(const std::string &_name, Walker * _walker) :
-                  MasterPort(_name, _walker), walker(_walker)
+                  RequestPort(_name, _walker), walker(_walker)
             {}
 
           protected:
index a28f6f3d2211bb472b8bfb95de477a494ea12a75..442a5e17e76e722a63334349f78ac04035cc211f 100644 (file)
@@ -48,11 +48,11 @@ class X86LocalApic(BaseInterrupts):
     type = 'X86LocalApic'
     cxx_class = 'X86ISA::Interrupts'
     cxx_header = 'arch/x86/interrupts.hh'
-    int_master = MasterPort("Port for sending interrupt messages")
-    int_slave = SlavePort("Port for receiving interrupt messages")
+    int_master = RequestPort("Port for sending interrupt messages")
+    int_slave = ResponsePort("Port for receiving interrupt messages")
     int_latency = Param.Latency('1ns', \
             "Latency for an interrupt to propagate through this device.")
-    pio = SlavePort("Programmed I/O port")
+    pio = ResponsePort("Programmed I/O port")
     system = Param.System(Parent.any, "System this device is part of")
 
     pio_latency = Param.Latency('100ns', 'Programmed IO latency')
index bb35526cf676f86903a14c08a9ec9a30e7abab9d..d9dd9802c88200766284a98d1d967590e1a87f46 100644 (file)
@@ -43,7 +43,7 @@ class X86PagetableWalker(ClockedObject):
     type = 'X86PagetableWalker'
     cxx_class = 'X86ISA::Walker'
     cxx_header = 'arch/x86/pagetable_walker.hh'
-    port = MasterPort("Port for the hardware table walker")
+    port = RequestPort("Port for the hardware table walker")
     system = Param.System(Parent.any, "system object")
     num_squash_per_cycle = Param.Unsigned(4,
             "Number of outstanding walks that can be squashed per cycle")
index a269426d980f239e5fcbe4528a169706ad3813db..55bb09873505a3ad661162c2ee392c068d6ddbb1 100644 (file)
@@ -57,11 +57,11 @@ namespace X86ISA
     {
       protected:
         // Port for accessing memory
-        class WalkerPort : public MasterPort
+        class WalkerPort : public RequestPort
         {
           public:
             WalkerPort(const std::string &_name, Walker * _walker) :
-                  MasterPort(_name, _walker), walker(_walker)
+                  RequestPort(_name, _walker), walker(_walker)
             {}
 
           protected: