main.cc (3132:a7dbdfa5958f) main.cc (3144:b6e9e1811d71)
1/*
2 * Copyright (c) 2000-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;

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

312 // curTick, and thus must be non-negative.
313 if (num_cycles == -1)
314 num_cycles = MaxTick;
315 else if (num_cycles < 0)
316 fatal("simulate: num_cycles must be >= 0 (was %d)\n", num_cycles);
317 else
318 num_cycles = curTick + num_cycles;
319
1/*
2 * Copyright (c) 2000-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;

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

312 // curTick, and thus must be non-negative.
313 if (num_cycles == -1)
314 num_cycles = MaxTick;
315 else if (num_cycles < 0)
316 fatal("simulate: num_cycles must be >= 0 (was %d)\n", num_cycles);
317 else
318 num_cycles = curTick + num_cycles;
319
320 Event *limit_event = new SimLoopExitEvent(num_cycles,
321 "simulate() limit reached");
320 Event *limit_event = schedExitSimLoop("simulate() limit reached",
321 num_cycles);
322
323 while (1) {
324 // there should always be at least one event (the SimLoopExitEvent
325 // we just scheduled) in the queue
326 assert(!mainEventQueue.empty());
327 assert(curTick <= mainEventQueue.nextTick() &&
328 "event scheduled in the past");
329

--- 130 unchanged lines hidden ---
322
323 while (1) {
324 // there should always be at least one event (the SimLoopExitEvent
325 // we just scheduled) in the queue
326 assert(!mainEventQueue.empty());
327 assert(curTick <= mainEventQueue.nextTick() &&
328 "event scheduled in the past");
329

--- 130 unchanged lines hidden ---