base.hh (9850:87d6b41749e9) | base.hh (10030:b531e328342d) |
---|---|
1/* 2 * Copyright (c) 2011-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 --- 247 unchanged lines hidden (view full) --- 256 virtual void haltContext(ThreadID thread_num) {} 257 258 /// Given a Thread Context pointer return the thread num 259 int findContext(ThreadContext *tc); 260 261 /// Given a thread num get tho thread context for it 262 virtual ThreadContext *getContext(int tn) { return threadContexts[tn]; } 263 | 1/* 2 * Copyright (c) 2011-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 --- 247 unchanged lines hidden (view full) --- 256 virtual void haltContext(ThreadID thread_num) {} 257 258 /// Given a Thread Context pointer return the thread num 259 int findContext(ThreadContext *tc); 260 261 /// Given a thread num get tho thread context for it 262 virtual ThreadContext *getContext(int tn) { return threadContexts[tn]; } 263 |
264 /// Get the number of thread contexts available 265 unsigned numContexts() { return threadContexts.size(); } 266 |
|
264 public: 265 typedef BaseCPUParams Params; 266 const Params *params() const 267 { return reinterpret_cast<const Params *>(_params); } 268 BaseCPU(Params *params, bool is_checker = false); 269 virtual ~BaseCPU(); 270 271 virtual void init(); --- 215 unchanged lines hidden --- | 267 public: 268 typedef BaseCPUParams Params; 269 const Params *params() const 270 { return reinterpret_cast<const Params *>(_params); } 271 BaseCPU(Params *params, bool is_checker = false); 272 virtual ~BaseCPU(); 273 274 virtual void init(); --- 215 unchanged lines hidden --- |