root.cc (2667:fe64b8353b1c) root.cc (3144:b6e9e1811d71)
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;

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

95
96 virtual void startup();
97};
98
99void
100Root::startup()
101{
102 if (max_tick != 0)
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;

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

95
96 virtual void startup();
97};
98
99void
100Root::startup()
101{
102 if (max_tick != 0)
103 exitSimLoop(curTick + max_tick, "reached maximum cycle count");
103 schedExitSimLoop("reached maximum cycle count", curTick + max_tick);
104
105 if (progress_interval != 0)
106 new ProgressEvent(&mainEventQueue, progress_interval);
107}
108
109BEGIN_DECLARE_SIM_OBJECT_PARAMS(Root)
110
111 Param<Tick> clock;

--- 49 unchanged lines hidden ---
104
105 if (progress_interval != 0)
106 new ProgressEvent(&mainEventQueue, progress_interval);
107}
108
109BEGIN_DECLARE_SIM_OBJECT_PARAMS(Root)
110
111 Param<Tick> clock;

--- 49 unchanged lines hidden ---