atomic.cc (7823:dac01f14f20f) atomic.cc (7897:d9e8b1fd1a9f)
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;

--- 198 unchanged lines hidden (view full) ---

207 DPRINTF(SimpleCPU, "Resume\n");
208 assert(system->getMemoryMode() == Enums::atomic);
209
210 changeState(SimObject::Running);
211 if (thread->status() == ThreadContext::Active) {
212 if (!tickEvent.scheduled())
213 schedule(tickEvent, nextCycle());
214 }
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;

--- 198 unchanged lines hidden (view full) ---

207 DPRINTF(SimpleCPU, "Resume\n");
208 assert(system->getMemoryMode() == Enums::atomic);
209
210 changeState(SimObject::Running);
211 if (thread->status() == ThreadContext::Active) {
212 if (!tickEvent.scheduled())
213 schedule(tickEvent, nextCycle());
214 }
215 system->totalNumInsts = 0;
215}
216
217void
218AtomicSimpleCPU::switchOut()
219{
220 assert(_status == Running || _status == Idle);
221 _status = SwitchedOut;
222

--- 536 unchanged lines hidden ---
216}
217
218void
219AtomicSimpleCPU::switchOut()
220{
221 assert(_status == Running || _status == Idle);
222 _status = SwitchedOut;
223

--- 536 unchanged lines hidden ---