1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 34 unchanged lines hidden (view full) --- 43class DataBlock; 44 45class AbstractCacheEntry : public AbstractEntry 46{ 47 public: 48 AbstractCacheEntry(); 49 virtual ~AbstractCacheEntry() = 0; 50 |
51 // Get/Set permission of cache entry 52 AccessPermission getPermission() const; 53 void changePermission(AccessPermission new_perm); 54 |
55 Address m_Address; // Address of this block, required by CacheMemory 56 Time m_LastRef; // Last time this block was referenced, required 57 // by CacheMemory 58 AccessPermission m_Permission; // Access permission for this 59 // block, required by CacheMemory |
60 int m_locked; // Holds info whether the address is locked, 61 // required for implementing LL/SC |
62}; 63 64inline std::ostream& 65operator<<(std::ostream& out, const AbstractCacheEntry& obj) 66{ 67 obj.print(out); 68 out << std::flush; 69 return out; 70} 71 72#endif // __MEM_RUBY_SLICC_INTERFACE_ABSTRACTCACHEENTRY_HH__ |