atomic.cc (3431:2e6b4536e574) atomic.cc (3432:0bd71e26a332)
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;

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

235 assert(thread_num == 0);
236 assert(thread);
237
238 assert(_status == Idle);
239 assert(!tickEvent.scheduled());
240
241 notIdleFraction++;
242 //Make sure ticks are still on multiples of cycles
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;

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

235 assert(thread_num == 0);
236 assert(thread);
237
238 assert(_status == Idle);
239 assert(!tickEvent.scheduled());
240
241 notIdleFraction++;
242 //Make sure ticks are still on multiples of cycles
243 Tick nextTick = curTick + cycles(1) - 1;
243 Tick nextTick = curTick + cycles(delay + 1) - 1;
244 nextTick -= (nextTick % (cycles(1)));
245 tickEvent.schedule(nextTick);
246 _status = Running;
247}
248
249
250void
251AtomicSimpleCPU::suspendContext(int thread_num)

--- 348 unchanged lines hidden ---
244 nextTick -= (nextTick % (cycles(1)));
245 tickEvent.schedule(nextTick);
246 _status = Running;
247}
248
249
250void
251AtomicSimpleCPU::suspendContext(int thread_num)

--- 348 unchanged lines hidden ---