From 67cc52a6056e17ff5bc9e0da60e1e498a5dc2c1b Mon Sep 17 00:00:00 2001 From: Korey Sewell Date: Wed, 23 Feb 2011 00:58:40 -0500 Subject: ruby: cleaning up RubyQueue and RubyNetwork dprintfs Overall, continue to progress Ruby debug messages to more of the normal M5 debug message style - add a name() to the Ruby Throttle & PerfectSwitch objects so that the debug output isn't littered w/"global:" everywhere. - clean up messages that print over multiple lines when possible - clean up duplicate prints in the message buffer --- src/mem/ruby/network/simple/PerfectSwitch.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mem/ruby/network/simple/PerfectSwitch.hh') diff --git a/src/mem/ruby/network/simple/PerfectSwitch.hh b/src/mem/ruby/network/simple/PerfectSwitch.hh index cd0219fd9..41125083f 100644 --- a/src/mem/ruby/network/simple/PerfectSwitch.hh +++ b/src/mem/ruby/network/simple/PerfectSwitch.hh @@ -38,6 +38,7 @@ #include #include +#include #include "mem/ruby/common/Consumer.hh" #include "mem/ruby/common/Global.hh" @@ -59,6 +60,9 @@ class PerfectSwitch : public Consumer PerfectSwitch(SwitchID sid, SimpleNetwork* network_ptr); ~PerfectSwitch(); + std::string name() + { return csprintf("PerfectSwitch-%i", m_switch_id); } + void addInPort(const std::vector& in); void addOutPort(const std::vector& out, const NetDest& routing_table_entry); -- cgit v1.2.3