thread_state.hh (10905:a6ca6831e775) | thread_state.hh (11005:e7f403b6b76f) |
---|---|
1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 57 unchanged lines hidden (view full) --- 66 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE; 67 68 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE; 69 70 int cpuId() const { return baseCpu->cpuId(); } 71 72 uint32_t socketId() const { return baseCpu->socketId(); } 73 | 1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 57 unchanged lines hidden (view full) --- 66 void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE; 67 68 void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE; 69 70 int cpuId() const { return baseCpu->cpuId(); } 71 72 uint32_t socketId() const { return baseCpu->socketId(); } 73 |
74 int contextId() const { return _contextId; } | 74 ContextID contextId() const { return _contextId; } |
75 | 75 |
76 void setContextId(int id) { _contextId = id; } | 76 void setContextId(ContextID id) { _contextId = id; } |
77 78 void setThreadId(ThreadID id) { _threadId = id; } 79 80 ThreadID threadId() const { return _threadId; } 81 82 Tick readLastActivate() const { return lastActivate; } 83 84 Tick readLastSuspend() const { return lastSuspend; } --- 63 unchanged lines hidden (view full) --- 148 149 protected: 150 ThreadContext::Status _status; 151 152 // Pointer to the base CPU. 153 BaseCPU *baseCpu; 154 155 // system wide HW context id | 77 78 void setThreadId(ThreadID id) { _threadId = id; } 79 80 ThreadID threadId() const { return _threadId; } 81 82 Tick readLastActivate() const { return lastActivate; } 83 84 Tick readLastSuspend() const { return lastSuspend; } --- 63 unchanged lines hidden (view full) --- 148 149 protected: 150 ThreadContext::Status _status; 151 152 // Pointer to the base CPU. 153 BaseCPU *baseCpu; 154 155 // system wide HW context id |
156 int _contextId; | 156 ContextID _contextId; |
157 158 // Index of hardware thread context on the CPU that this represents. 159 ThreadID _threadId; 160 161 public: 162 /** Last time activate was called on this thread. */ 163 Tick lastActivate; 164 --- 37 unchanged lines hidden --- | 157 158 // Index of hardware thread context on the CPU that this represents. 159 ThreadID _threadId; 160 161 public: 162 /** Last time activate was called on this thread. */ 163 Tick lastActivate; 164 --- 37 unchanged lines hidden --- |