CacheMemory.hh (10978:436d5dde4bb7) CacheMemory.hh (10980:7de6f95a0817)
1/*
2 * Copyright (c) 1999-2012 Mark D. Hill and David A. Wood
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
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

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

95 // looks an address up in the cache
96 AbstractCacheEntry* lookup(const Address& address);
97 const AbstractCacheEntry* lookup(const Address& address) const;
98
99 Cycles getLatency() const { return m_latency; }
100 Cycles getTagLatency() const { return tagArray.getLatency(); }
101 Cycles getDataLatency() const { return dataArray.getLatency(); }
102
1/*
2 * Copyright (c) 1999-2012 Mark D. Hill and David A. Wood
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
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

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

95 // looks an address up in the cache
96 AbstractCacheEntry* lookup(const Address& address);
97 const AbstractCacheEntry* lookup(const Address& address) const;
98
99 Cycles getLatency() const { return m_latency; }
100 Cycles getTagLatency() const { return tagArray.getLatency(); }
101 Cycles getDataLatency() const { return dataArray.getLatency(); }
102
103 bool isBlockInvalid(int64 cache_set, int64 loc);
104 bool isBlockNotBusy(int64 cache_set, int64 loc);
103
104 // Hook for checkpointing the contents of the cache
105 void recordCacheContents(int cntrl, CacheRecorder* tr) const;
106
107 // Set this address to most recently used
108 void setMRU(const Address& address);
109
110 void setLocked (const Address& addr, int context);

--- 75 unchanged lines hidden ---
105
106 // Hook for checkpointing the contents of the cache
107 void recordCacheContents(int cntrl, CacheRecorder* tr) const;
108
109 // Set this address to most recently used
110 void setMRU(const Address& address);
111
112 void setLocked (const Address& addr, int context);

--- 75 unchanged lines hidden ---