diff options
author | Nathan Binkert <nate@binkert.org> | 2010-04-02 11:20:32 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2010-04-02 11:20:32 -0700 |
commit | f1c3f3044b73d890ffdfdd113b3b37ae2809d21b (patch) | |
tree | 959d71e897a8d01868c8dea8a8b225cbd1b5ce2c /src/mem/ruby/system/MemoryControl.hh | |
parent | be10204729c107b41d5d7487323c732e9fa09df5 (diff) | |
download | gem5-f1c3f3044b73d890ffdfdd113b3b37ae2809d21b.tar.xz |
ruby: get "using namespace" out of headers
In addition to obvious changes, this required a slight change to the slicc
grammar to allow types with :: in them. Otherwise slicc barfs on std::string
which we need for the headers that slicc generates.
Diffstat (limited to 'src/mem/ruby/system/MemoryControl.hh')
-rw-r--r-- | src/mem/ruby/system/MemoryControl.hh | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/mem/ruby/system/MemoryControl.hh b/src/mem/ruby/system/MemoryControl.hh index d42c1e6e0..73646f623 100644 --- a/src/mem/ruby/system/MemoryControl.hh +++ b/src/mem/ruby/system/MemoryControl.hh @@ -29,7 +29,9 @@ #ifndef __MEM_RUBY_SYSTEM_MEMORY_CONTROL_HH__ #define __MEM_RUBY_SYSTEM_MEMORY_CONTROL_HH__ +#include <iostream> #include <list> +#include <string> #include "mem/gems_common/Map.hh" #include "mem/gems_common/util.hh" @@ -67,8 +69,8 @@ class MemoryControl : void setConsumer(Consumer* consumer_ptr); Consumer* getConsumer() { return m_consumer_ptr; }; - void setDescription(const string& name) { m_description = name; }; - string getDescription() { return m_description; }; + void setDescription(const std::string& name) { m_description = name; }; + std::string getDescription() { return m_description; }; // Called from the directory: void enqueue(const MsgPtr& message, int latency ); @@ -82,11 +84,11 @@ class MemoryControl : //// Called from L3 cache: //void writeBack(physical_address_t addr); - void printConfig(ostream& out); - void print(ostream& out) const; + void printConfig(std::ostream& out); + void print(std::ostream& out) const; void setDebug(int debugFlag); void clearStats() const; - void printStats(ostream& out) const; + void printStats(std::ostream& out) const; //added by SS int getBanksPerRank() { return m_banks_per_rank; }; @@ -109,7 +111,7 @@ class MemoryControl : // data members Consumer* m_consumer_ptr; // Consumer to signal a wakeup() - string m_description; + std::string m_description; int m_msg_counter; int m_awakened; @@ -136,9 +138,9 @@ class MemoryControl : int m_refresh_period_system; // queues where memory requests live - list<MemoryNode> m_response_queue; - list<MemoryNode> m_input_queue; - 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: |