thread_context.hh (10110:580b47334a97) thread_context.hh (10190:fb83d025d1c3)
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

--- 109 unchanged lines hidden (view full) ---

118 };
119
120 virtual ~ThreadContext() { };
121
122 virtual BaseCPU *getCpuPtr() = 0;
123
124 virtual int cpuId() const = 0;
125
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

--- 109 unchanged lines hidden (view full) ---

118 };
119
120 virtual ~ThreadContext() { };
121
122 virtual BaseCPU *getCpuPtr() = 0;
123
124 virtual int cpuId() const = 0;
125
126 virtual uint32_t socketId() const = 0;
127
126 virtual int threadId() const = 0;
127
128 virtual void setThreadId(int id) = 0;
129
130 virtual int contextId() const = 0;
131
132 virtual void setContextId(int id) = 0;
133

--- 184 unchanged lines hidden (view full) ---

318 TC *actualTC;
319
320 public:
321
322 BaseCPU *getCpuPtr() { return actualTC->getCpuPtr(); }
323
324 int cpuId() const { return actualTC->cpuId(); }
325
128 virtual int threadId() const = 0;
129
130 virtual void setThreadId(int id) = 0;
131
132 virtual int contextId() const = 0;
133
134 virtual void setContextId(int id) = 0;
135

--- 184 unchanged lines hidden (view full) ---

320 TC *actualTC;
321
322 public:
323
324 BaseCPU *getCpuPtr() { return actualTC->getCpuPtr(); }
325
326 int cpuId() const { return actualTC->cpuId(); }
327
328 uint32_t socketId() const { return actualTC->socketId(); }
329
326 int threadId() const { return actualTC->threadId(); }
327
328 void setThreadId(int id) { actualTC->setThreadId(id); }
329
330 int contextId() const { return actualTC->contextId(); }
331
332 void setContextId(int id) { actualTC->setContextId(id); }
333

--- 192 unchanged lines hidden ---
330 int threadId() const { return actualTC->threadId(); }
331
332 void setThreadId(int id) { actualTC->setThreadId(id); }
333
334 int contextId() const { return actualTC->contextId(); }
335
336 void setContextId(int id) { actualTC->setContextId(id); }
337

--- 192 unchanged lines hidden ---