gem5  v21.1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gem5::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 63 of file init.hh.

Constructor & Destructor Documentation

◆ EmbeddedPython()

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

Definition at line 78 of file init.cc.

References getList(), importer, and modpath.

Member Function Documentation

◆ addModule()

bool gem5::EmbeddedPython::addModule ( ) const

Definition at line 116 of file init.cc.

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

◆ getCode()

PyObject * gem5::EmbeddedPython::getCode ( ) const

Definition at line 103 of file init.cc.

References code, len, panic, and zlen.

Referenced by addModule(), and initAll().

◆ getList()

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

Definition at line 92 of file init.cc.

Referenced by EmbeddedPython(), and initAll().

◆ initAll()

int gem5::EmbeddedPython::initAll ( )
static

Definition at line 134 of file init.cc.

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

Referenced by main().

Member Data Documentation

◆ abspath

const char* gem5::EmbeddedPython::abspath

Definition at line 66 of file init.hh.

Referenced by addModule().

◆ code

const uint8_t* gem5::EmbeddedPython::code

Definition at line 68 of file init.hh.

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

◆ filename

const char* gem5::EmbeddedPython::filename

Definition at line 65 of file init.hh.

Referenced by addModule().

◆ importer

EmbeddedPython * gem5::EmbeddedPython::importer = NULL
static

Definition at line 78 of file init.hh.

Referenced by EmbeddedPython(), and initAll().

◆ importerModule

PyObject * gem5::EmbeddedPython::importerModule = NULL
static

Definition at line 79 of file init.hh.

Referenced by addModule(), and initAll().

◆ len

int gem5::EmbeddedPython::len

Definition at line 70 of file init.hh.

Referenced by getCode().

◆ modpath

const char* gem5::EmbeddedPython::modpath

Definition at line 67 of file init.hh.

Referenced by addModule(), and EmbeddedPython().

◆ zlen

int gem5::EmbeddedPython::zlen

Definition at line 69 of file init.hh.

Referenced by getCode().


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

Generated on Wed Jul 28 2021 12:10:38 for gem5 by doxygen 1.8.17