init.hh (8946:fb6c89334b86) | init.hh (9554:406fbcf60223) |
---|---|
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 | 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 |
|
34/* 35 * Data structure describing an embedded python file. 36 */ 37#include <list> 38 39#include <inttypes.h> 40 41#ifndef PyObject_HEAD --- 27 unchanged lines hidden (view full) --- 69 void (*initFunc)(); 70 71 EmbeddedSwig(void (*init_func)()); 72 73 static std::list<EmbeddedSwig *> &getList(); 74 static void initAll(); 75}; 76 | 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); |
|
77void initSignals(); 78int initM5Python(); 79int m5Main(int argc, char **argv); | 83void initSignals(); 84int initM5Python(); 85int m5Main(int argc, char **argv); |
86PyMODINIT_FUNC initm5(void); |
|
80 81#endif // __SIM_INIT_HH__ | 87 88#endif // __SIM_INIT_HH__ |