Daniel Carvalho has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/45416 )

Change subject: mem-ruby: Rename network variables as net
......................................................................

mem-ruby: Rename network variables as net

Pave the way for a network namespace.

Change-Id: Ib109a5e65eb1b88cfae59a77986f01b739071232
Signed-off-by: Daniel R. Carvalho <[email protected]>
---
M src/mem/ruby/system/RubySystem.cc
1 file changed, 10 insertions(+), 10 deletions(-)



diff --git a/src/mem/ruby/system/RubySystem.cc b/src/mem/ruby/system/RubySystem.cc
index fcb407f..38f0634 100644
--- a/src/mem/ruby/system/RubySystem.cc
+++ b/src/mem/ruby/system/RubySystem.cc
@@ -106,11 +106,11 @@
 }

 void
-RubySystem::registerMachineID(const MachineID& mach_id, Network* network)
+RubySystem::registerMachineID(const MachineID& mach_id, Network* net)
 {
     int network_id = -1;
     for (int idx = 0; idx < m_networks.size(); ++idx) {
-        if (m_networks[idx].get() == network) {
+        if (m_networks[idx].get() == net) {
             network_id = idx;
         }
     }
@@ -467,8 +467,8 @@
 RubySystem::resetStats()
 {
     m_start_cycle = curCycle();
-    for (auto& network : m_networks) {
-        network->resetStats();
+    for (auto& net : m_networks) {
+        net->resetStats();
     }
 }

@@ -580,8 +580,8 @@
         DPRINTF(RubySystem, "Network functionalRead lookup "
                             "(num_maybe_stale=%d, num_busy = %d)\n",
                 num_maybe_stale, num_busy);
-        for (auto& network : m_networks) {
-            if (network->functionalRead(pkt))
+        for (auto& net : m_networks) {
+            if (net->functionalRead(pkt))
                 return true;
         }
     }
@@ -661,8 +661,8 @@
             ctrl->functionalRead(line_address, pkt, bytes);
             ctrl->functionalReadBuffers(pkt, bytes);
         }
-        for (auto& network : m_networks) {
-            network->functionalRead(pkt, bytes);
+        for (auto& net : m_networks) {
+            net->functionalRead(pkt, bytes);
         }
         for (auto ctrl : ctrl_others) {
             ctrl->functionalRead(line_address, pkt, bytes);
@@ -720,8 +720,8 @@
         }
     }

-    for (auto& network : m_networks) {
-        num_functional_writes += network->functionalWrite(pkt);
+    for (auto& net : m_networks) {
+        num_functional_writes += net->functionalWrite(pkt);
     }
     DPRINTF(RubySystem, "Messages written = %u\n", num_functional_writes);


--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/45416
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ib109a5e65eb1b88cfae59a77986f01b739071232
Gerrit-Change-Number: 45416
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Carvalho <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to