AbstractCacheEntry.hh (7055:4e24742201d7) AbstractCacheEntry.hh (7839:9e556fb25900)
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
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
51 Address m_Address; // Address of this block, required by CacheMemory
52 Time m_LastRef; // Last time this block was referenced, required
53 // by CacheMemory
54 AccessPermission m_Permission; // Access permission for this
55 // block, required by CacheMemory
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
56};
57
58inline std::ostream&
59operator<<(std::ostream& out, const AbstractCacheEntry& obj)
60{
61 obj.print(out);
62 out << std::flush;
63 return out;
64}
65
66#endif // __MEM_RUBY_SLICC_INTERFACE_ABSTRACTCACHEENTRY_HH__
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__
67