thread_context.hh (10935:acd48ddd725f) | thread_context.hh (11005:e7f403b6b76f) |
---|---|
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 --- 87 unchanged lines hidden (view full) --- 96 virtual BaseCPU *getCpuPtr() { return cpu; } 97 98 /** Reads this CPU's ID. */ 99 virtual int cpuId() const { return cpu->cpuId(); } 100 101 /** Reads this CPU's Socket ID. */ 102 virtual uint32_t socketId() const { return cpu->socketId(); } 103 | 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 --- 87 unchanged lines hidden (view full) --- 96 virtual BaseCPU *getCpuPtr() { return cpu; } 97 98 /** Reads this CPU's ID. */ 99 virtual int cpuId() const { return cpu->cpuId(); } 100 101 /** Reads this CPU's Socket ID. */ 102 virtual uint32_t socketId() const { return cpu->socketId(); } 103 |
104 virtual int contextId() const { return thread->contextId(); } | 104 virtual ContextID contextId() const { return thread->contextId(); } |
105 106 virtual void setContextId(int id) { thread->setContextId(id); } 107 108 /** Returns this thread's ID number. */ 109 virtual int threadId() const { return thread->threadId(); } 110 virtual void setThreadId(int id) { return thread->setThreadId(id); } 111 112 /** Returns a pointer to the system. */ --- 184 unchanged lines hidden --- | 105 106 virtual void setContextId(int id) { thread->setContextId(id); } 107 108 /** Returns this thread's ID number. */ 109 virtual int threadId() const { return thread->threadId(); } 110 virtual void setThreadId(int id) { return thread->setThreadId(id); } 111 112 /** Returns a pointer to the system. */ --- 184 unchanged lines hidden --- |