summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/simple/PerfectSwitch.hh
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2014-09-01 16:55:48 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2014-09-01 16:55:48 -0500
commitb4dade6fb273baaf86d316ca90fba5ebc7d4b717 (patch)
treefb74926d6c1fb64b400e7dd65517369f13dab693 /src/mem/ruby/network/simple/PerfectSwitch.hh
parent7a0d5aafe4b845a2d1cff6210d7c6ee66e8aba61 (diff)
downloadgem5-b4dade6fb273baaf86d316ca90fba5ebc7d4b717.tar.xz
ruby: PerfectSwitch: moves code to a per vnet helper function
This patch moves code from the wakeup() function to a operateVnet(). The aim is to improve the readiblity of the code.
Diffstat (limited to 'src/mem/ruby/network/simple/PerfectSwitch.hh')
-rw-r--r--src/mem/ruby/network/simple/PerfectSwitch.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mem/ruby/network/simple/PerfectSwitch.hh b/src/mem/ruby/network/simple/PerfectSwitch.hh
index 25e3e2754..161430bd1 100644
--- a/src/mem/ruby/network/simple/PerfectSwitch.hh
+++ b/src/mem/ruby/network/simple/PerfectSwitch.hh
@@ -84,6 +84,8 @@ class PerfectSwitch : public Consumer
PerfectSwitch(const PerfectSwitch& obj);
PerfectSwitch& operator=(const PerfectSwitch& obj);
+ void operateVnet(int vnet);
+
SwitchID m_switch_id;
// vector of queues from the components