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 --- 82 unchanged lines hidden (view full) --- 91 { 92 return cpu->fetch.decoder[thread->threadId()]; 93 } 94 95 /** Returns a pointer to this CPU. */ 96 virtual BaseCPU *getCpuPtr() { return cpu; } 97 98 /** Reads this CPU's ID. */ | 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 --- 82 unchanged lines hidden (view full) --- 91 { 92 return cpu->fetch.decoder[thread->threadId()]; 93 } 94 95 /** Returns a pointer to this CPU. */ 96 virtual BaseCPU *getCpuPtr() { return cpu; } 97 98 /** Reads this CPU's ID. */ |
99 virtual int cpuId() { return cpu->cpuId(); } | 99 virtual int cpuId() const { return cpu->cpuId(); } |
100 | 100 |
101 virtual int contextId() { return thread->contextId(); } | 101 virtual int contextId() const { return thread->contextId(); } |
102 103 virtual void setContextId(int id) { thread->setContextId(id); } 104 105 /** Returns this thread's ID number. */ | 102 103 virtual void setContextId(int id) { thread->setContextId(id); } 104 105 /** Returns this thread's ID number. */ |
106 virtual int threadId() { return thread->threadId(); } | 106 virtual int threadId() const { return thread->threadId(); } |
107 virtual void setThreadId(int id) { return thread->setThreadId(id); } 108 109 /** Returns a pointer to the system. */ 110 virtual System *getSystemPtr() { return cpu->system; } 111 112 /** Returns a pointer to this thread's kernel statistics. */ 113 virtual TheISA::Kernel::Statistics *getKernelStats() 114 { return thread->kernelStats; } --- 188 unchanged lines hidden --- | 107 virtual void setThreadId(int id) { return thread->setThreadId(id); } 108 109 /** Returns a pointer to the system. */ 110 virtual System *getSystemPtr() { return cpu->system; } 111 112 /** Returns a pointer to this thread's kernel statistics. */ 113 virtual TheISA::Kernel::Statistics *getKernelStats() 114 { return thread->kernelStats; } --- 188 unchanged lines hidden --- |