Deleted Added
sdiff udiff text old ( 13429:a1e199fd8122 ) new ( 13472:7ceacede4f1e )
full compact
1/*
2 * Copyright (c) 2011-2012, 2014 ARM Limited
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

66 enum LSQPolicy {
67 Dynamic,
68 Partitioned,
69 Threshold
70 };
71
72 /** Constructs an LSQ with the given parameters. */
73 LSQ(O3CPU *cpu_ptr, IEW *iew_ptr, DerivO3CPUParams *params);
74 ~LSQ() {
75 if (thread) delete [] thread;
76 }
77
78 /** Returns the name of the LSQ. */
79 std::string name() const;
80
81 /** Registers statistics of each LSQ unit. */
82 void regStats();
83
84 /** Sets the pointer to the list of active threads. */

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

305
306 /** The IEW stage pointer. */
307 IEW *iewStage;
308
309 protected:
310 /** The LSQ policy for SMT mode. */
311 LSQPolicy lsqPolicy;
312
313 /** The LSQ units for individual threads. */
314 LSQUnit *thread;
315
316 /** List of Active Threads in System. */
317 std::list<ThreadID> *activeThreads;
318
319 /** Total Size of LQ Entries. */
320 unsigned LQEntries;
321 /** Total Size of SQ Entries. */
322 unsigned SQEntries;
323
324 /** Max LQ Size - Used to Enforce Sharing Policies. */
325 unsigned maxLQEntries;
326
327 /** Max SQ Size - Used to Enforce Sharing Policies. */
328 unsigned maxSQEntries;
329
330 /** Number of Threads. */
331 ThreadID numThreads;
332};
333
334template <class Impl>
335Fault
336LSQ<Impl>::read(const RequestPtr &req,
337 RequestPtr &sreqLow, RequestPtr &sreqHigh,

--- 19 unchanged lines hidden ---