1/* 2 * Copyright (c) 2008 The Hewlett-Packard Development Company 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; --- 17 unchanged lines hidden (view full) --- 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Nathan Binkert 29 */ 30 31#ifndef __SIM_INIT_HH__ 32#define __SIM_INIT_HH__ 33 |
34#include <Python.h> 35 |
36/* 37 * Data structure describing an embedded python file. 38 */ 39#include <list> 40 41#include <inttypes.h> 42 43#ifndef PyObject_HEAD --- 27 unchanged lines hidden (view full) --- 71 void (*initFunc)(); 72 73 EmbeddedSwig(void (*init_func)()); 74 75 static std::list<EmbeddedSwig *> &getList(); 76 static void initAll(); 77}; 78 |
79void dumpStatsHandler(int sigtype); 80void dumprstStatsHandler(int sigtype); 81void exitNowHandler(int sigtype); 82void abortHandler(int sigtype); |
83void initSignals(); 84int initM5Python(); 85int m5Main(int argc, char **argv); |
86PyMODINIT_FUNC initm5(void); |
87 88#endif // __SIM_INIT_HH__ |