thread_state.cc (6331:d947798df4a1) | thread_state.cc (7679:f26cc2c68b48) |
---|---|
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; --- 61 unchanged lines hidden (view full) --- 70} 71 72void 73ThreadState::serialize(std::ostream &os) 74{ 75 SERIALIZE_ENUM(_status); 76 // thread_num and cpu_id are deterministic from the config 77 SERIALIZE_SCALAR(funcExeInst); | 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; --- 61 unchanged lines hidden (view full) --- 70} 71 72void 73ThreadState::serialize(std::ostream &os) 74{ 75 SERIALIZE_ENUM(_status); 76 // thread_num and cpu_id are deterministic from the config 77 SERIALIZE_SCALAR(funcExeInst); |
78 SERIALIZE_SCALAR(inst); | |
79 80#if FULL_SYSTEM 81 Tick quiesceEndTick = 0; 82 if (quiesceEvent->scheduled()) 83 quiesceEndTick = quiesceEvent->when(); 84 SERIALIZE_SCALAR(quiesceEndTick); 85 if (kernelStats) 86 kernelStats->serialize(os); 87#endif 88} 89 90void 91ThreadState::unserialize(Checkpoint *cp, const std::string §ion) 92{ 93 94 UNSERIALIZE_ENUM(_status); 95 // thread_num and cpu_id are deterministic from the config 96 UNSERIALIZE_SCALAR(funcExeInst); | 78 79#if FULL_SYSTEM 80 Tick quiesceEndTick = 0; 81 if (quiesceEvent->scheduled()) 82 quiesceEndTick = quiesceEvent->when(); 83 SERIALIZE_SCALAR(quiesceEndTick); 84 if (kernelStats) 85 kernelStats->serialize(os); 86#endif 87} 88 89void 90ThreadState::unserialize(Checkpoint *cp, const std::string §ion) 91{ 92 93 UNSERIALIZE_ENUM(_status); 94 // thread_num and cpu_id are deterministic from the config 95 UNSERIALIZE_SCALAR(funcExeInst); |
97 UNSERIALIZE_SCALAR(inst); | |
98 99#if FULL_SYSTEM 100 Tick quiesceEndTick; 101 UNSERIALIZE_SCALAR(quiesceEndTick); 102 if (quiesceEndTick) 103 baseCpu->schedule(quiesceEvent, quiesceEndTick); 104 if (kernelStats) 105 kernelStats->unserialize(cp, section); --- 87 unchanged lines hidden --- | 96 97#if FULL_SYSTEM 98 Tick quiesceEndTick; 99 UNSERIALIZE_SCALAR(quiesceEndTick); 100 if (quiesceEndTick) 101 baseCpu->schedule(quiesceEvent, quiesceEndTick); 102 if (kernelStats) 103 kernelStats->unserialize(cp, section); --- 87 unchanged lines hidden --- |