main.cc (2928:39faed6ca129) | main.cc (3102:225b76c8ac68) |
---|---|
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; --- 137 unchanged lines hidden (view full) --- 146 147 // initialize embedded Python interpreter 148 Py_Initialize(); 149 PySys_SetArgv(argc, argv); 150 151 // initialize SWIG 'cc_main' module 152 init_cc_main(); 153 | 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; --- 137 unchanged lines hidden (view full) --- 146 147 // initialize embedded Python interpreter 148 Py_Initialize(); 149 PySys_SetArgv(argc, argv); 150 151 // initialize SWIG 'cc_main' module 152 init_cc_main(); 153 |
154 PyRun_SimpleString("import m5"); 155 PyRun_SimpleString("m5.main()"); | 154 PyRun_SimpleString("import m5.main"); 155 PyRun_SimpleString("m5.main.main()"); |
156 157 // clean up Python intepreter. 158 Py_Finalize(); 159} 160 161 162void 163setOutputDir(const string &dir) --- 291 unchanged lines hidden --- | 156 157 // clean up Python intepreter. 158 Py_Finalize(); 159} 160 161 162void 163setOutputDir(const string &dir) --- 291 unchanged lines hidden --- |