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 --- 78 unchanged lines hidden (view full) --- 87 SimpleThread *checkerTC; 88 /** Pointer to the checker CPU. */ 89 CheckerCPU *checkerCPU; 90 91 public: 92 93 BaseCPU *getCpuPtr() { return actualTC->getCpuPtr(); } 94 | 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 --- 78 unchanged lines hidden (view full) --- 87 SimpleThread *checkerTC; 88 /** Pointer to the checker CPU. */ 89 CheckerCPU *checkerCPU; 90 91 public: 92 93 BaseCPU *getCpuPtr() { return actualTC->getCpuPtr(); } 94 |
95 int cpuId() { return actualTC->cpuId(); } | 95 int cpuId() const { return actualTC->cpuId(); } |
96 | 96 |
97 int contextId() { return actualTC->contextId(); } | 97 int contextId() const { return actualTC->contextId(); } |
98 99 void setContextId(int id) 100 { 101 actualTC->setContextId(id); 102 checkerTC->setContextId(id); 103 } 104 105 /** Returns this thread's ID number. */ | 98 99 void setContextId(int id) 100 { 101 actualTC->setContextId(id); 102 checkerTC->setContextId(id); 103 } 104 105 /** Returns this thread's ID number. */ |
106 int threadId() { return actualTC->threadId(); } | 106 int threadId() const { return actualTC->threadId(); } |
107 void setThreadId(int id) 108 { 109 checkerTC->setThreadId(id); 110 actualTC->setThreadId(id); 111 } 112 113 TheISA::TLB *getITBPtr() { return actualTC->getITBPtr(); } 114 --- 229 unchanged lines hidden --- | 107 void setThreadId(int id) 108 { 109 checkerTC->setThreadId(id); 110 actualTC->setThreadId(id); 111 } 112 113 TheISA::TLB *getITBPtr() { return actualTC->getITBPtr(); } 114 --- 229 unchanged lines hidden --- |