atomic.cc (3190:9cff20ad90fc) | atomic.cc (3201:7c3b18c01b0e) |
---|---|
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; --- 168 unchanged lines hidden (view full) --- 177 UNSERIALIZE_ENUM(_status); 178 BaseSimpleCPU::unserialize(cp, section); 179 tickEvent.unserialize(cp, csprintf("%s.tickEvent", section)); 180} 181 182void 183AtomicSimpleCPU::resume() 184{ | 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; --- 168 unchanged lines hidden (view full) --- 177 UNSERIALIZE_ENUM(_status); 178 BaseSimpleCPU::unserialize(cp, section); 179 tickEvent.unserialize(cp, csprintf("%s.tickEvent", section)); 180} 181 182void 183AtomicSimpleCPU::resume() 184{ |
185 assert(system->getMemoryMode() == System::Atomic); | |
186 changeState(SimObject::Running); 187 if (thread->status() == ThreadContext::Active) { | 185 changeState(SimObject::Running); 186 if (thread->status() == ThreadContext::Active) { |
187 assert(system->getMemoryMode() == System::Atomic); |
|
188 if (!tickEvent.scheduled()) 189 tickEvent.schedule(curTick); 190 } 191} 192 193void 194AtomicSimpleCPU::switchOut() 195{ --- 391 unchanged lines hidden --- | 188 if (!tickEvent.scheduled()) 189 tickEvent.schedule(curTick); 190 } 191} 192 193void 194AtomicSimpleCPU::switchOut() 195{ --- 391 unchanged lines hidden --- |