diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2014-02-06 16:30:12 -0600 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2014-02-06 16:30:12 -0600 |
commit | bb0e9119e700b7816e8509a9010441362dc66ccd (patch) | |
tree | 6e2120efadd5bb20914d853370e2ff30ce5916d5 /src/mem/ruby/system/RubyMemoryControl.hh | |
parent | e76a37985f9ab9678ed00809cc2ec8385c293ba5 (diff) | |
download | gem5-bb0e9119e700b7816e8509a9010441362dc66ccd.tar.xz |
ruby: memory controller: use MemoryNode *
Diffstat (limited to 'src/mem/ruby/system/RubyMemoryControl.hh')
-rw-r--r-- | src/mem/ruby/system/RubyMemoryControl.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mem/ruby/system/RubyMemoryControl.hh b/src/mem/ruby/system/RubyMemoryControl.hh index 7be74583a..042078db1 100644 --- a/src/mem/ruby/system/RubyMemoryControl.hh +++ b/src/mem/ruby/system/RubyMemoryControl.hh @@ -73,10 +73,10 @@ class RubyMemoryControl : public MemoryControl // Called from the directory: void enqueue(const MsgPtr& message, Cycles latency); - void enqueueMemRef(MemoryNode& memRef); + void enqueueMemRef(MemoryNode *memRef); void dequeue(); const Message* peek(); - MemoryNode peekNode(); + MemoryNode *peekNode(); bool isReady(); bool areNSlotsAvailable(int n) { return true; }; // infinite queue length @@ -99,7 +99,7 @@ class RubyMemoryControl : public MemoryControl uint32_t functionalWriteBuffers(Packet *pkt); private: - void enqueueToDirectory(MemoryNode req, Cycles latency); + void enqueueToDirectory(MemoryNode *req, Cycles latency); const int getRank(int bank) const; bool queueReady(int bank); void issueRequest(int bank); @@ -138,9 +138,9 @@ class RubyMemoryControl : public MemoryControl int m_refresh_period_system; // queues where memory requests live - std::list<MemoryNode> m_response_queue; - std::list<MemoryNode> m_input_queue; - std::list<MemoryNode>* m_bankQueues; + std::list<MemoryNode *> m_response_queue; + std::list<MemoryNode *> m_input_queue; + std::list<MemoryNode *>* m_bankQueues; // Each entry indicates number of address-bus cycles until bank // is reschedulable: |