summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/simple/PerfectSwitch.hh
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2015-09-12 16:16:17 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2015-09-12 16:16:17 -0500
commit8b199b775e209c20cd7f7a8c085455931f8cb70e (patch)
treec983bf99213fc171bf26d2d41d3820acc699e337 /src/mem/ruby/network/simple/PerfectSwitch.hh
parent25cd13dbf1d6f7d306b40c7e2e3d7231b0c5eb04 (diff)
downloadgem5-8b199b775e209c20cd7f7a8c085455931f8cb70e.tar.xz
ruby: perfect switch: refactor code
Refactored the code in operateVnet(), moved partly to a new function operateMessageBuffer(). This is required since a later patch moves to having a wakeup event per MessageBuffer instead of one event for the entire Switch.
Diffstat (limited to 'src/mem/ruby/network/simple/PerfectSwitch.hh')
-rw-r--r--src/mem/ruby/network/simple/PerfectSwitch.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mem/ruby/network/simple/PerfectSwitch.hh b/src/mem/ruby/network/simple/PerfectSwitch.hh
index dddbdc9ba..1cc986964 100644
--- a/src/mem/ruby/network/simple/PerfectSwitch.hh
+++ b/src/mem/ruby/network/simple/PerfectSwitch.hh
@@ -85,6 +85,7 @@ class PerfectSwitch : public Consumer
PerfectSwitch& operator=(const PerfectSwitch& obj);
void operateVnet(int vnet);
+ void operateMessageBuffer(MessageBuffer *b, int incoming, int vnet);
const SwitchID m_switch_id;
Switch * const m_switch;