AbstractCacheEntry.hh (6285:ce086eca1ede) AbstractCacheEntry.hh (6882:898047a3672c)
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

--- 26 unchanged lines hidden (view full) ---

35 */
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"
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

--- 26 unchanged lines hidden (view full) ---

35 */
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#include "mem/ruby/slicc_interface/AbstractEntry.hh"
43
44class DataBlock;
45
44
45class DataBlock;
46
46class AbstractCacheEntry {
47class AbstractCacheEntry : public AbstractEntry {
47public:
48 // Constructors
49 AbstractCacheEntry();
50
51 // Destructor, prevent it from instantiation
52 virtual ~AbstractCacheEntry() = 0;
53
48public:
49 // Constructors
50 AbstractCacheEntry();
51
52 // Destructor, prevent it from instantiation
53 virtual ~AbstractCacheEntry() = 0;
54
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;
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
67};
68
69// Output operator declaration
70ostream& operator<<(ostream& out, const AbstractCacheEntry& obj);

--- 14 unchanged lines hidden ---
55 // Data Members (m_ prefix)
56 Address m_Address; // Address of this block, required by CacheMemory
57 Time m_LastRef; // Last time this block was referenced, required by CacheMemory
58 AccessPermission m_Permission; // Access permission for this block, required by CacheMemory
59};
60
61// Output operator declaration
62ostream& operator<<(ostream& out, const AbstractCacheEntry& obj);

--- 14 unchanged lines hidden ---