CacheMemory.hh (10301:44839e8febbd) CacheMemory.hh (10314:94b6b28fc968)
1/*
2 * Copyright (c) 1999-2012 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;

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

126 Stats::Scalar numTagArrayReads;
127 Stats::Scalar numTagArrayWrites;
128
129 Stats::Scalar numTagArrayStalls;
130 Stats::Scalar numDataArrayStalls;
131
132 private:
133 // convert a Address to its location in the cache
1/*
2 * Copyright (c) 1999-2012 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;

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

126 Stats::Scalar numTagArrayReads;
127 Stats::Scalar numTagArrayWrites;
128
129 Stats::Scalar numTagArrayStalls;
130 Stats::Scalar numDataArrayStalls;
131
132 private:
133 // convert a Address to its location in the cache
134 Index addressToCacheSet(const Address& address) const;
134 int64 addressToCacheSet(const Address& address) const;
135
136 // Given a cache tag: returns the index of the tag in a set.
137 // returns -1 if the tag is not found.
135
136 // Given a cache tag: returns the index of the tag in a set.
137 // returns -1 if the tag is not found.
138 int findTagInSet(Index line, const Address& tag) const;
139 int findTagInSetIgnorePermissions(Index cacheSet,
138 int findTagInSet(int64 line, const Address& tag) const;
139 int findTagInSetIgnorePermissions(int64 cacheSet,
140 const Address& tag) const;
141
142 // Private copy constructor and assignment operator
143 CacheMemory(const CacheMemory& obj);
144 CacheMemory& operator=(const CacheMemory& obj);
145
146 private:
147 Cycles m_latency;

--- 26 unchanged lines hidden ---
140 const Address& tag) const;
141
142 // Private copy constructor and assignment operator
143 CacheMemory(const CacheMemory& obj);
144 CacheMemory& operator=(const CacheMemory& obj);
145
146 private:
147 Cycles m_latency;

--- 26 unchanged lines hidden ---