diff options
author | Tony Gutierrez <anthony.gutierrez@amd.com> | 2015-09-17 14:00:33 -0400 |
---|---|---|
committer | Tony Gutierrez <anthony.gutierrez@amd.com> | 2015-09-17 14:00:33 -0400 |
commit | b3eb0d1423f26e42985ed23b84f71c858a8dd24e (patch) | |
tree | 6d144a46633d91012be66fed0e5ae426be6bc840 /src/mem/ruby/structures/WireBuffer.hh | |
parent | 928d4b4ba860258c5d34c267fe5b8d67ae827d3e (diff) | |
download | gem5-b3eb0d1423f26e42985ed23b84f71c858a8dd24e.tar.xz |
ruby: update WireBuffer API to match that of MessageBuffer
this patch updates the WireBuffer API to mirror the changes in revision 11111
Diffstat (limited to 'src/mem/ruby/structures/WireBuffer.hh')
-rw-r--r-- | src/mem/ruby/structures/WireBuffer.hh | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mem/ruby/structures/WireBuffer.hh b/src/mem/ruby/structures/WireBuffer.hh index 4282f524e..f038705d9 100644 --- a/src/mem/ruby/structures/WireBuffer.hh +++ b/src/mem/ruby/structures/WireBuffer.hh @@ -72,12 +72,13 @@ class WireBuffer : public SimObject void setDescription(const std::string& name) { m_description = name; }; std::string getDescription() { return m_description; }; - void enqueue(MsgPtr message, Cycles latency); - void dequeue(); + void enqueue(MsgPtr message, Tick current_time, Tick delta); + void dequeue(Tick current_time); const Message* peek(); - void recycle(); - bool isReady(); - bool areNSlotsAvailable(int n) { return true; }; // infinite queue length + void recycle(Tick current_time, Tick recycle_latency); + bool isReady(Tick current_time); + // infinite queue length + bool areNSlotsAvailable(int n, Tick current_time) { return true; }; void print(std::ostream& out) const; uint64_t m_msg_counter; @@ -93,9 +94,6 @@ class WireBuffer : public SimObject // queues where memory requests live std::vector<MsgPtr> m_message_queue; - - RubySystem * m_ruby_system; - }; std::ostream& operator<<(std::ostream& out, const WireBuffer& obj); |