gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
init.cc File Reference
#include <Python.h>
#include "sim/init.hh"
#include <marshal.h>
#include <zlib.h>
#include <iostream>
#include <list>
#include <string>
#include "base/cprintf.hh"
#include "base/misc.hh"
#include "base/types.hh"
#include "config/have_protobuf.hh"
#include "python/pybind11/pybind.hh"
#include "sim/async.hh"
#include "sim/core.hh"

Go to the source code of this file.

Macros

#define PyCC(x)   (const_cast<char *>(x))
 

Functions

int initM5Python ()
 
const char * __attribute__ ((weak)) m5MainCommands[]
 
int m5Main (int argc, char **argv)
 
PyMODINIT_FUNC initm5 (void)
 

Macro Definition Documentation

#define PyCC (   x)    (const_cast<char *>(x))

Definition at line 73 of file init.cc.

Referenced by EmbeddedPython::addModule(), EmbeddedPython::initAll(), initm5(), and m5Main().

Function Documentation

const char* __attribute__ ( (weak)  )
PyMODINIT_FUNC initm5 ( void  )

Definition at line 294 of file init.cc.

References initM5Python(), and PyCC.

int initM5Python ( )

Definition at line 231 of file init.cc.

References EmbeddedPython::initAll(), and EmbeddedPyBind::initAll().

Referenced by initm5(), and main().

int m5Main ( int  argc,
char **  argv 
)

Definition at line 252 of file init.cc.

References m5MainCommands, panic, and PyCC.

Referenced by main().


Generated on Fri Jun 9 2017 13:03:59 for gem5 by doxygen 1.8.6