system.hh (12449:2260f4a68210) system.hh (12515:e3d1a64d0260)
1/*
2 * Copyright (c) 2012, 2014 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

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

191 */
192 unsigned int cacheLineSize() const { return _cacheLineSize; }
193
194#if THE_ISA != NULL_ISA
195 PCEventQueue pcEventQueue;
196#endif
197
198 std::vector<ThreadContext *> threadContexts;
1/*
2 * Copyright (c) 2012, 2014 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

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

191 */
192 unsigned int cacheLineSize() const { return _cacheLineSize; }
193
194#if THE_ISA != NULL_ISA
195 PCEventQueue pcEventQueue;
196#endif
197
198 std::vector<ThreadContext *> threadContexts;
199 int _numContexts;
200 const bool multiThread;
201
202 ThreadContext *getThreadContext(ContextID tid)
203 {
204 return threadContexts[tid];
205 }
206
199 const bool multiThread;
200
201 ThreadContext *getThreadContext(ContextID tid)
202 {
203 return threadContexts[tid];
204 }
205
207 int numContexts()
208 {
209 assert(_numContexts == (int)threadContexts.size());
210 return _numContexts;
211 }
206 unsigned numContexts() const { return threadContexts.size(); }
212
213 /** Return number of running (non-halted) thread contexts in
214 * system. These threads could be Active or Suspended. */
215 int numRunningContexts();
216
217 Addr pagePtr;
218
219 uint64_t init_param;

--- 375 unchanged lines hidden ---
207
208 /** Return number of running (non-halted) thread contexts in
209 * system. These threads could be Active or Suspended. */
210 int numRunningContexts();
211
212 Addr pagePtr;
213
214 uint64_t init_param;

--- 375 unchanged lines hidden ---