diff options
Diffstat (limited to 'src/mem/ruby/system/AbstractMemOrCache.hh')
-rw-r--r-- | src/mem/ruby/system/AbstractMemOrCache.hh | 66 |
1 files changed, 29 insertions, 37 deletions
diff --git a/src/mem/ruby/system/AbstractMemOrCache.hh b/src/mem/ruby/system/AbstractMemOrCache.hh index 4a8b667e8..28b446ef8 100644 --- a/src/mem/ruby/system/AbstractMemOrCache.hh +++ b/src/mem/ruby/system/AbstractMemOrCache.hh @@ -26,42 +26,34 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* - * AbstractMemOrCache.hh - * - * Description: - * - * - */ - -#ifndef ABSTRACT_MEM_OR_CACHE_H -#define ABSTRACT_MEM_OR_CACHE_H - -#include "mem/ruby/common/Global.hh" -#include "mem/ruby/common/Address.hh" - -class AbstractMemOrCache { -public: - - virtual ~AbstractMemOrCache() {}; - virtual void setConsumer(Consumer* consumer_ptr) = 0; - virtual Consumer* getConsumer() = 0; - - virtual void enqueue (const MsgPtr& message, int latency ) = 0; - virtual void enqueueMemRef (MemoryNode& memRef) = 0; - virtual void dequeue () = 0; - virtual const Message* peek () = 0; - virtual bool isReady () = 0; - virtual MemoryNode peekNode () = 0; - virtual bool areNSlotsAvailable (int n) = 0; - virtual void printConfig (ostream& out) = 0; - virtual void print (ostream& out) const = 0; - virtual void setDebug (int debugFlag) = 0; - -private: - +#ifndef __MEM_RUBY_SYSTEM_ABSTRACTMEMORCACHE_HH__ +#define __MEM_RUBY_SYSTEM_ABSTRACTMEMORCACHE_HH__ + +#include <iosfwd> + +#include "mem/ruby/slicc_interface/Message.hh" + +class Consumer; +class MemoryNode; +class Message; + +class AbstractMemOrCache +{ + public: + virtual ~AbstractMemOrCache() {}; + virtual void setConsumer(Consumer* consumer_ptr) = 0; + virtual Consumer* getConsumer() = 0; + + virtual void enqueue (const MsgPtr& message, int latency) = 0; + virtual void enqueueMemRef (MemoryNode& memRef) = 0; + virtual void dequeue () = 0; + virtual const Message* peek () = 0; + virtual bool isReady () = 0; + virtual MemoryNode peekNode () = 0; + virtual bool areNSlotsAvailable (int n) = 0; + virtual void printConfig (std::ostream& out) = 0; + virtual void print (std::ostream& out) const = 0; + virtual void setDebug (int debugFlag) = 0; }; - -#endif - +#endif // __MEM_RUBY_SYSTEM_ABSTRACTMEMORCACHE_HH__ |