Deleted Added
sdiff udiff text old ( 9440:fdc91cab5760 ) new ( 9444:ab47fe7f03f0 )
full compact
1/*
2 * Copyright (c) 2011 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
9 * licensed hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

74 /** Returns the name of the LSQ. */
75 std::string name() const;
76
77 /** Registers statistics of each LSQ unit. */
78 void regStats();
79
80 /** Sets the pointer to the list of active threads. */
81 void setActiveThreads(std::list<ThreadID> *at_ptr);
82 /** Switches out the LSQ. */
83 void switchOut();
84 /** Takes over execution from another CPU's thread. */
85 void takeOverFrom();
86
87 /** Number of entries needed for the given amount of threads.*/
88 int entryAmount(ThreadID num_threads);
89 void removeEntries(ThreadID tid);
90 /** Reset the max entries for each thread. */
91 void resetEntries();

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

206 /** Returns if the LSQ is full (either LQ or SQ is full). */
207 bool isFull();
208 /**
209 * Returns if the LSQ is full for a specific thread (either LQ or SQ is
210 * full).
211 */
212 bool isFull(ThreadID tid);
213
214 /** Returns if any of the LQs are full. */
215 bool lqFull();
216 /** Returns if the LQ of a given thread is full. */
217 bool lqFull(ThreadID tid);
218
219 /** Returns if any of the SQs are full. */
220 bool sqFull();
221 /** Returns if the SQ of a given thread is full. */

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

249 bool willWB();
250 /** Returns if the LSQ of a specific thread will write back to memory this
251 * cycle.
252 */
253 bool willWB(ThreadID tid)
254 { return thread[tid].willWB(); }
255
256 /** Returns if the cache is currently blocked. */
257 bool cacheBlocked()
258 { return retryTid != InvalidThreadID; }
259
260 /** Sets the retry thread id, indicating that one of the LSQUnits
261 * tried to access the cache but the cache was blocked. */
262 void setRetryTid(ThreadID tid)
263 { retryTid = tid; }
264
265 /** Debugging function to print out all instructions. */

--- 88 unchanged lines hidden ---