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

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

35#include <string>
36#include <vector>
37
38#include "base/misc.hh"
39#include "base/output.hh"
40#include "sim/builder.hh"
41#include "sim/host.hh"
42#include "sim/sim_events.hh"
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;

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

35#include <string>
36#include <vector>
37
38#include "base/misc.hh"
39#include "base/output.hh"
40#include "sim/builder.hh"
41#include "sim/host.hh"
42#include "sim/sim_events.hh"
43#include "sim/sim_exit.hh"
43#include "sim/sim_object.hh"
44#include "sim/root.hh"
45
46using namespace std;
47
48Tick curTick = 0;
49ostream *outputStream;
50ostream *configStream;

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

94
95 virtual void startup();
96};
97
98void
99Root::startup()
100{
101 if (max_tick != 0)
44#include "sim/sim_object.hh"
45#include "sim/root.hh"
46
47using namespace std;
48
49Tick curTick = 0;
50ostream *outputStream;
51ostream *configStream;

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

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