process.hh (10932:cafae9abd4e4) | process.hh (11005:e7f403b6b76f) |
---|---|
1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * Copyright (c) 2001-2005 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 61 unchanged lines hidden (view full) --- 70{ 71 public: 72 73 /// Pointer to object representing the system this process is 74 /// running on. 75 System *system; 76 77 // thread contexts associated with this process | 1/* 2 * Copyright (c) 2014 Advanced Micro Devices, Inc. 3 * Copyright (c) 2001-2005 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 61 unchanged lines hidden (view full) --- 70{ 71 public: 72 73 /// Pointer to object representing the system this process is 74 /// running on. 75 System *system; 76 77 // thread contexts associated with this process |
78 std::vector<int> contextIds; | 78 std::vector<ContextID> contextIds; |
79 80 // number of CPUs (esxec contexts, really) assigned to this process. 81 unsigned int numCpus() { return contextIds.size(); } 82 83 // record of blocked context 84 struct WaitRec 85 { 86 Addr waitChan; --- 68 unchanged lines hidden (view full) --- 155 // inherit file descriptor map from another process (necessary for clone) 156 void inheritFDArray(Process *p); 157 158 // override of virtual SimObject method: register statistics 159 virtual void regStats(); 160 161 // After getting registered with system object, tell process which 162 // system-wide context id it is assigned. | 79 80 // number of CPUs (esxec contexts, really) assigned to this process. 81 unsigned int numCpus() { return contextIds.size(); } 82 83 // record of blocked context 84 struct WaitRec 85 { 86 Addr waitChan; --- 68 unchanged lines hidden (view full) --- 155 // inherit file descriptor map from another process (necessary for clone) 156 void inheritFDArray(Process *p); 157 158 // override of virtual SimObject method: register statistics 159 virtual void regStats(); 160 161 // After getting registered with system object, tell process which 162 // system-wide context id it is assigned. |
163 void assignThreadContext(int context_id) | 163 void assignThreadContext(ContextID context_id) |
164 { 165 contextIds.push_back(context_id); 166 } 167 168 // Find a free context to use 169 ThreadContext *findFreeContext(); 170 171 // provide program name for debug messages --- 170 unchanged lines hidden --- | 164 { 165 contextIds.push_back(context_id); 166 } 167 168 // Find a free context to use 169 ThreadContext *findFreeContext(); 170 171 // provide program name for debug messages --- 170 unchanged lines hidden --- |