diff options
author | Korey Sewell <ksewell@umich.edu> | 2011-02-23 00:58:40 -0500 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2011-02-23 00:58:40 -0500 |
commit | 67cc52a6056e17ff5bc9e0da60e1e498a5dc2c1b (patch) | |
tree | 1c9036bf240e80a618a4691f1b9b1486270dc444 /src/mem/ruby/network/simple/PerfectSwitch.hh | |
parent | 63a25a56ccc93c24703fec87f830c833974e7060 (diff) | |
download | gem5-67cc52a6056e17ff5bc9e0da60e1e498a5dc2c1b.tar.xz |
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
Diffstat (limited to 'src/mem/ruby/network/simple/PerfectSwitch.hh')
-rw-r--r-- | src/mem/ruby/network/simple/PerfectSwitch.hh | 4 |
1 files changed, 4 insertions, 0 deletions
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 <iostream> #include <vector> +#include <string> #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<MessageBuffer*>& in); void addOutPort(const std::vector<MessageBuffer*>& out, const NetDest& routing_table_entry); |