gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
Loader::MemoryImage::Segment Struct Reference

#include <memory_image.hh>

Public Member Functions

 Segment (const std::string &_name, Addr _base, const uint8_t *_data, size_t _size)
 
 Segment (const std::string &_name, Addr _base, size_t _size)
 
 Segment (const std::string &_name, Addr _base, const ImageFileDataPtr &_ifd, Addr offset, size_t _size)
 
 Segment (const std::string &_name, const ImageFileDataPtr &_ifd)
 

Public Attributes

ImageFileDataPtr ifd
 
std::string name
 
Addr base = 0
 
const uint8_t * data = nullptr
 
size_t size = 0
 

Detailed Description

Definition at line 51 of file memory_image.hh.

Constructor & Destructor Documentation

◆ Segment() [1/4]

Loader::MemoryImage::Segment::Segment ( const std::string &  _name,
Addr  _base,
const uint8_t *  _data,
size_t  _size 
)
inline

Definition at line 53 of file memory_image.hh.

◆ Segment() [2/4]

Loader::MemoryImage::Segment::Segment ( const std::string &  _name,
Addr  _base,
size_t  _size 
)
inline

Definition at line 58 of file memory_image.hh.

◆ Segment() [3/4]

Loader::MemoryImage::Segment::Segment ( const std::string &  _name,
Addr  _base,
const ImageFileDataPtr _ifd,
Addr  offset,
size_t  _size 
)
inline

Definition at line 62 of file memory_image.hh.

References data, ifd, Loader::MemoryImage::offset(), panic_if, and size.

◆ Segment() [4/4]

Loader::MemoryImage::Segment::Segment ( const std::string &  _name,
const ImageFileDataPtr _ifd 
)
inline

Definition at line 71 of file memory_image.hh.

Member Data Documentation

◆ base

Addr Loader::MemoryImage::Segment::base = 0

Definition at line 77 of file memory_image.hh.

◆ data

const uint8_t* Loader::MemoryImage::Segment::data = nullptr

Definition at line 78 of file memory_image.hh.

Referenced by Segment().

◆ ifd

ImageFileDataPtr Loader::MemoryImage::Segment::ifd

Definition at line 75 of file memory_image.hh.

Referenced by Segment().

◆ name

std::string Loader::MemoryImage::Segment::name

Definition at line 76 of file memory_image.hh.

◆ size

size_t Loader::MemoryImage::Segment::size = 0

Definition at line 79 of file memory_image.hh.

Referenced by Segment().


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

Generated on Wed Sep 30 2020 14:03:06 for gem5 by doxygen 1.8.17