gem5  v20.1.0.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
EmbeddedPython Struct Reference

#include <init.hh>

Public Member Functions

 EmbeddedPython (const char *filename, const char *abspath, const char *modpath, const uint8_t *code, int zlen, int len)
 
PyObjectgetCode () const
 
bool addModule () const
 

Static Public Member Functions

static std::list< EmbeddedPython * > & getList ()
 
static int initAll ()
 

Public Attributes

const char * filename
 
const char * abspath
 
const char * modpath
 
const uint8_t * code
 
int zlen
 
int len
 

Static Public Attributes

static EmbeddedPythonimporter = NULL
 
static PyObjectimporterModule = NULL
 

Detailed Description

Definition at line 60 of file init.hh.

Constructor & Destructor Documentation

◆ EmbeddedPython()

EmbeddedPython::EmbeddedPython ( const char *  filename,
const char *  abspath,
const char *  modpath,
const uint8_t *  code,
int  zlen,
int  len 
)

Definition at line 76 of file init.cc.

References getList(), importer, and modpath.

Member Function Documentation

◆ addModule()

bool EmbeddedPython::addModule ( ) const

Definition at line 114 of file init.cc.

References abspath, code, filename, getCode(), importerModule, modpath, and PyCC.

◆ getCode()

PyObject * EmbeddedPython::getCode ( ) const

Definition at line 101 of file init.cc.

References code, len, panic, and zlen.

Referenced by addModule(), and initAll().

◆ getList()

list< EmbeddedPython * > & EmbeddedPython::getList ( )
static

Definition at line 90 of file init.cc.

Referenced by EmbeddedPython(), and initAll().

◆ initAll()

int EmbeddedPython::initAll ( )
static

Definition at line 132 of file init.cc.

References code, getCode(), getList(), ArmISA::i, importer, importerModule, and PyCC.

Referenced by main().

Member Data Documentation

◆ abspath

const char* EmbeddedPython::abspath

Definition at line 63 of file init.hh.

Referenced by addModule().

◆ code

const uint8_t* EmbeddedPython::code

Definition at line 65 of file init.hh.

Referenced by addModule(), getCode(), and initAll().

◆ filename

const char* EmbeddedPython::filename

Definition at line 62 of file init.hh.

Referenced by addModule().

◆ importer

EmbeddedPython * EmbeddedPython::importer = NULL
static

Definition at line 75 of file init.hh.

Referenced by EmbeddedPython(), and initAll().

◆ importerModule

PyObject * EmbeddedPython::importerModule = NULL
static

Definition at line 76 of file init.hh.

Referenced by addModule(), and initAll().

◆ len

int EmbeddedPython::len

Definition at line 67 of file init.hh.

Referenced by getCode().

◆ modpath

const char* EmbeddedPython::modpath

Definition at line 64 of file init.hh.

Referenced by addModule(), and EmbeddedPython().

◆ zlen

int EmbeddedPython::zlen

Definition at line 66 of file init.hh.

Referenced by getCode().


The documentation for this struct was generated from the following files:

Generated on Wed Sep 30 2020 14:02:23 for gem5 by doxygen 1.8.17