atomic.cc (3119:6c93a7460ecf) | atomic.cc (3145:85467cafadbb) |
---|---|
1/* 2 * Copyright (c) 2002-2005 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; --- 147 unchanged lines hidden (view full) --- 156{ 157} 158 159void 160AtomicSimpleCPU::serialize(ostream &os) 161{ 162 SimObject::State so_state = SimObject::getState(); 163 SERIALIZE_ENUM(so_state); | 1/* 2 * Copyright (c) 2002-2005 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; --- 147 unchanged lines hidden (view full) --- 156{ 157} 158 159void 160AtomicSimpleCPU::serialize(ostream &os) 161{ 162 SimObject::State so_state = SimObject::getState(); 163 SERIALIZE_ENUM(so_state); |
164 BaseSimpleCPU::serialize(os); |
|
164 nameOut(os, csprintf("%s.tickEvent", name())); 165 tickEvent.serialize(os); | 165 nameOut(os, csprintf("%s.tickEvent", name())); 166 tickEvent.serialize(os); |
166 BaseSimpleCPU::serialize(os); | |
167} 168 169void 170AtomicSimpleCPU::unserialize(Checkpoint *cp, const string §ion) 171{ 172 SimObject::State so_state; 173 UNSERIALIZE_ENUM(so_state); | 167} 168 169void 170AtomicSimpleCPU::unserialize(Checkpoint *cp, const string §ion) 171{ 172 SimObject::State so_state; 173 UNSERIALIZE_ENUM(so_state); |
174 tickEvent.unserialize(cp, csprintf("%s.tickEvent", section)); | |
175 BaseSimpleCPU::unserialize(cp, section); | 174 BaseSimpleCPU::unserialize(cp, section); |
175 tickEvent.unserialize(cp, csprintf("%s.tickEvent", section)); |
|
176} 177 178void 179AtomicSimpleCPU::resume() 180{ 181 assert(system->getMemoryMode() == System::Atomic); 182 changeState(SimObject::Running); 183 if (thread->status() == ThreadContext::Active) { --- 373 unchanged lines hidden --- | 176} 177 178void 179AtomicSimpleCPU::resume() 180{ 181 assert(system->getMemoryMode() == System::Atomic); 182 changeState(SimObject::Running); 183 if (thread->status() == ThreadContext::Active) { --- 373 unchanged lines hidden --- |