base.hh (10344:fa9ef374075f) base.hh (10345:b5bef3c8e070)
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

89 public:
90 /**
91 * Reasons for caches to be blocked.
92 */
93 enum BlockedCause {
94 Blocked_NoMSHRs = MSHRQueue_MSHRs,
95 Blocked_NoWBBuffers = MSHRQueue_WriteBuffer,
96 Blocked_NoTargets,
1/*
2 * Copyright (c) 2012-2013 ARM Limited
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

89 public:
90 /**
91 * Reasons for caches to be blocked.
92 */
93 enum BlockedCause {
94 Blocked_NoMSHRs = MSHRQueue_MSHRs,
95 Blocked_NoWBBuffers = MSHRQueue_WriteBuffer,
96 Blocked_NoTargets,
97 Blocked_PendingWriteInvalidate,
97 NUM_BLOCKED_CAUSES
98 };
99
100 /**
101 * Reasons for cache to request a bus.
102 */
103 enum RequestCause {
104 Request_MSHR = MSHRQueue_MSHRs,

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

163 public:
164
165 /** Do not accept any new requests. */
166 void setBlocked();
167
168 /** Return to normal operation and accept new requests. */
169 void clearBlocked();
170
98 NUM_BLOCKED_CAUSES
99 };
100
101 /**
102 * Reasons for cache to request a bus.
103 */
104 enum RequestCause {
105 Request_MSHR = MSHRQueue_MSHRs,

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

164 public:
165
166 /** Do not accept any new requests. */
167 void setBlocked();
168
169 /** Return to normal operation and accept new requests. */
170 void clearBlocked();
171
172 bool isBlocked() const { return blocked; }
173
171 protected:
172
173 CacheSlavePort(const std::string &_name, BaseCache *_cache,
174 const std::string &_label);
175
176 /** A normal packet queue used to store responses. */
177 SlavePacketQueue queue;
178

--- 412 unchanged lines hidden ---
174 protected:
175
176 CacheSlavePort(const std::string &_name, BaseCache *_cache,
177 const std::string &_label);
178
179 /** A normal packet queue used to store responses. */
180 SlavePacketQueue queue;
181

--- 412 unchanged lines hidden ---