thread_context.hh (10033:21c14a2b2117) | thread_context.hh (10110:580b47334a97) |
---|---|
1/* 2 * Copyright (c) 2011-2012 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 --- 107 unchanged lines hidden (view full) --- 116 /// this state, the simulation will terminate. 117 Halted 118 }; 119 120 virtual ~ThreadContext() { }; 121 122 virtual BaseCPU *getCpuPtr() = 0; 123 | 1/* 2 * Copyright (c) 2011-2012 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 --- 107 unchanged lines hidden (view full) --- 116 /// this state, the simulation will terminate. 117 Halted 118 }; 119 120 virtual ~ThreadContext() { }; 121 122 virtual BaseCPU *getCpuPtr() = 0; 123 |
124 virtual int cpuId() = 0; | 124 virtual int cpuId() const = 0; |
125 | 125 |
126 virtual int threadId() = 0; | 126 virtual int threadId() const = 0; |
127 128 virtual void setThreadId(int id) = 0; 129 | 127 128 virtual void setThreadId(int id) = 0; 129 |
130 virtual int contextId() = 0; | 130 virtual int contextId() const = 0; |
131 132 virtual void setContextId(int id) = 0; 133 134 virtual TheISA::TLB *getITBPtr() = 0; 135 136 virtual TheISA::TLB *getDTBPtr() = 0; 137 138 virtual CheckerCPU *getCheckerCpuPtr() = 0; --- 177 unchanged lines hidden (view full) --- 316 317 private: 318 TC *actualTC; 319 320 public: 321 322 BaseCPU *getCpuPtr() { return actualTC->getCpuPtr(); } 323 | 131 132 virtual void setContextId(int id) = 0; 133 134 virtual TheISA::TLB *getITBPtr() = 0; 135 136 virtual TheISA::TLB *getDTBPtr() = 0; 137 138 virtual CheckerCPU *getCheckerCpuPtr() = 0; --- 177 unchanged lines hidden (view full) --- 316 317 private: 318 TC *actualTC; 319 320 public: 321 322 BaseCPU *getCpuPtr() { return actualTC->getCpuPtr(); } 323 |
324 int cpuId() { return actualTC->cpuId(); } | 324 int cpuId() const { return actualTC->cpuId(); } |
325 | 325 |
326 int threadId() { return actualTC->threadId(); } | 326 int threadId() const { return actualTC->threadId(); } |
327 | 327 |
328 void setThreadId(int id) { return actualTC->setThreadId(id); } | 328 void setThreadId(int id) { actualTC->setThreadId(id); } |
329 | 329 |
330 int contextId() { return actualTC->contextId(); } | 330 int contextId() const { return actualTC->contextId(); } |
331 332 void setContextId(int id) { actualTC->setContextId(id); } 333 334 TheISA::TLB *getITBPtr() { return actualTC->getITBPtr(); } 335 336 TheISA::TLB *getDTBPtr() { return actualTC->getDTBPtr(); } 337 338 CheckerCPU *getCheckerCpuPtr() { return actualTC->getCheckerCpuPtr(); } --- 187 unchanged lines hidden --- | 331 332 void setContextId(int id) { actualTC->setContextId(id); } 333 334 TheISA::TLB *getITBPtr() { return actualTC->getITBPtr(); } 335 336 TheISA::TLB *getDTBPtr() { return actualTC->getDTBPtr(); } 337 338 CheckerCPU *getCheckerCpuPtr() { return actualTC->getCheckerCpuPtr(); } --- 187 unchanged lines hidden --- |