AbstractCacheEntry.hh (6154:6bb54dcb940e) | AbstractCacheEntry.hh (6285:ce086eca1ede) |
---|---|
1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 27 unchanged lines hidden (view full) --- 36 37#ifndef AbstractCacheEntry_H 38#define AbstractCacheEntry_H 39 40#include "mem/ruby/common/Global.hh" 41#include "mem/ruby/common/Address.hh" 42#include "mem/protocol/AccessPermission.hh" 43 | 1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 27 unchanged lines hidden (view full) --- 36 37#ifndef AbstractCacheEntry_H 38#define AbstractCacheEntry_H 39 40#include "mem/ruby/common/Global.hh" 41#include "mem/ruby/common/Address.hh" 42#include "mem/protocol/AccessPermission.hh" 43 |
44class DataBlock; 45 |
|
44class AbstractCacheEntry { 45public: 46 // Constructors 47 AbstractCacheEntry(); 48 49 // Destructor, prevent it from instantiation 50 virtual ~AbstractCacheEntry() = 0; 51 52 // Public Methods 53 54 // The methods below are those called by ruby runtime, add when it is 55 // absolutely necessary and should all be virtual function. | 46class AbstractCacheEntry { 47public: 48 // Constructors 49 AbstractCacheEntry(); 50 51 // Destructor, prevent it from instantiation 52 virtual ~AbstractCacheEntry() = 0; 53 54 // Public Methods 55 56 // The methods below are those called by ruby runtime, add when it is 57 // absolutely necessary and should all be virtual function. |
58 virtual DataBlock& getDataBlk() = 0; |
|
56 57 58 virtual void print(ostream& out) const = 0; 59 60 // Data Members (m_ prefix) 61 Address m_Address; // Address of this block, required by CacheMemory 62 Time m_LastRef; // Last time this block was referenced, required by CacheMemory 63 AccessPermission m_Permission; // Access permission for this block, required by CacheMemory --- 18 unchanged lines hidden --- | 59 60 61 virtual void print(ostream& out) const = 0; 62 63 // Data Members (m_ prefix) 64 Address m_Address; // Address of this block, required by CacheMemory 65 Time m_LastRef; // Last time this block was referenced, required by CacheMemory 66 AccessPermission m_Permission; // Access permission for this block, required by CacheMemory --- 18 unchanged lines hidden --- |