mshr_queue.hh (10764:b32578b2af99) mshr_queue.hh (10913:38dbdeea7f1f)
1/*
2 * Copyright (c) 2012-2013, 2015 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

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

87 std::vector<MSHR> registers;
88 /** Holds pointers to all allocated entries. */
89 MSHR::List allocatedList;
90 /** Holds pointers to entries that haven't been sent to the bus. */
91 MSHR::List readyList;
92 /** Holds non allocated entries. */
93 MSHR::List freeList;
94
1/*
2 * Copyright (c) 2012-2013, 2015 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

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

87 std::vector<MSHR> registers;
88 /** Holds pointers to all allocated entries. */
89 MSHR::List allocatedList;
90 /** Holds pointers to entries that haven't been sent to the bus. */
91 MSHR::List readyList;
92 /** Holds non allocated entries. */
93 MSHR::List freeList;
94
95 /** Drain manager to inform of a completed drain */
96 DrainManager *drainManager;
97
98 MSHR::Iterator addToReadyList(MSHR *mshr);
99
100
101 public:
102 /** The number of allocated entries. */
103 int allocated;
104 /** The number of entries that have been forwarded to the bus. */
105 int inServiceEntries;

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

253 return readyList.front();
254 }
255
256 Tick nextMSHRReadyTime() const
257 {
258 return readyList.empty() ? MaxTick : readyList.front()->readyTime;
259 }
260
95 MSHR::Iterator addToReadyList(MSHR *mshr);
96
97
98 public:
99 /** The number of allocated entries. */
100 int allocated;
101 /** The number of entries that have been forwarded to the bus. */
102 int inServiceEntries;

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

250 return readyList.front();
251 }
252
253 Tick nextMSHRReadyTime() const
254 {
255 return readyList.empty() ? MaxTick : readyList.front()->readyTime;
256 }
257
261 unsigned int drain(DrainManager *dm);
258 DrainState drain() M5_ATTR_OVERRIDE;
262};
263
264#endif //__MEM_CACHE_MSHR_QUEUE_HH__
259};
260
261#endif //__MEM_CACHE_MSHR_QUEUE_HH__