main.cc (3624:aaba7e06ece4) | main.cc (3645:2bf1f7c69254) |
---|---|
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; --- 105 unchanged lines hidden (view full) --- 114#if TRACING_ON 115 // dump trace buffer, if there is one 116 Trace::theLog.dump(cerr); 117#endif 118} 119 120extern "C" { 121void init_main(); | 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; --- 105 unchanged lines hidden (view full) --- 114#if TRACING_ON 115 // dump trace buffer, if there is one 116 Trace::theLog.dump(cerr); 117#endif 118} 119 120extern "C" { 121void init_main(); |
122void init_debug(); |
|
122} 123 124int 125main(int argc, char **argv) 126{ 127 signal(SIGFPE, SIG_IGN); // may occur on misspeculated paths 128 signal(SIGTRAP, SIG_IGN); 129 signal(SIGUSR1, dumpStatsHandler); // dump intermediate stats --- 22 unchanged lines hidden (view full) --- 152 if (!python_home) 153 python_home = PYTHONHOME; 154 Py_SetPythonHome(python_home); 155 156 // initialize embedded Python interpreter 157 Py_Initialize(); 158 PySys_SetArgv(argc, argv); 159 | 123} 124 125int 126main(int argc, char **argv) 127{ 128 signal(SIGFPE, SIG_IGN); // may occur on misspeculated paths 129 signal(SIGTRAP, SIG_IGN); 130 signal(SIGUSR1, dumpStatsHandler); // dump intermediate stats --- 22 unchanged lines hidden (view full) --- 153 if (!python_home) 154 python_home = PYTHONHOME; 155 Py_SetPythonHome(python_home); 156 157 // initialize embedded Python interpreter 158 Py_Initialize(); 159 PySys_SetArgv(argc, argv); 160 |
160 // initialize SWIG 'm5.internal.main' module | 161 // initialize SWIG modules |
161 init_main(); | 162 init_main(); |
163 init_debug(); |
|
162 163 PyRun_SimpleString("import m5.main"); 164 PyRun_SimpleString("m5.main.main()"); 165 166 // clean up Python intepreter. 167 Py_Finalize(); 168} 169 --- 306 unchanged lines hidden --- | 164 165 PyRun_SimpleString("import m5.main"); 166 PyRun_SimpleString("m5.main.main()"); 167 168 // clean up Python intepreter. 169 Py_Finalize(); 170} 171 --- 306 unchanged lines hidden --- |