Deleted Added
sdiff udiff text old ( 3511:8cb26619b6ec ) new ( 3624:aaba7e06ece4 )
full compact
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;

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

112 cerr << "Program aborted at cycle " << curTick << endl;
113
114#if TRACING_ON
115 // dump trace buffer, if there is one
116 Trace::theLog.dump(cerr);
117#endif
118}
119
120extern "C" { void init_cc_main(); }
121
122int
123main(int argc, char **argv)
124{
125 signal(SIGFPE, SIG_IGN); // may occur on misspeculated paths
126 signal(SIGTRAP, SIG_IGN);
127 signal(SIGUSR1, dumpStatsHandler); // dump intermediate stats
128 signal(SIGUSR2, dumprstStatsHandler); // dump and reset stats

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

150 if (!python_home)
151 python_home = PYTHONHOME;
152 Py_SetPythonHome(python_home);
153
154 // initialize embedded Python interpreter
155 Py_Initialize();
156 PySys_SetArgv(argc, argv);
157
158 // initialize SWIG 'cc_main' module
159 init_cc_main();
160
161 PyRun_SimpleString("import m5.main");
162 PyRun_SimpleString("m5.main.main()");
163
164 // clean up Python intepreter.
165 Py_Finalize();
166}
167

--- 306 unchanged lines hidden ---