Go to the documentation of this file.
29 #ifndef __BASE_LOADER_MEMORY_IMAGE_HH__
30 #define __BASE_LOADER_MEMORY_IMAGE_HH__
34 #include <initializer_list>
58 const uint8_t *_data,
size_t _size) :
71 "Segment outside the bounds of the image data");
82 const uint8_t *
data =
nullptr;
118 for (
auto &
seg: segs)
139 max = std::max(max,
seg.base +
seg.size);
148 min = std::min(min,
seg.base);
165 static inline std::ostream &
175 #endif // __BASE_LOADER_MEMORY_IMAGE_HH__
Segment(const std::string &_name, const ImageFileDataPtr &_ifd)
MemoryImage(std::initializer_list< Segment > segs)
static std::ostream & operator<<(std::ostream &os, const MemoryImage::Segment &seg)
Segment(const std::string &_name, Addr _base, const uint8_t *_data, size_t _size)
Segment(const std::string &_name, Addr _base, size_t _size)
void ccprintf(cp::Print &print)
std::vector< Segment > _segments
MemoryImage & offset(Addr by)
void addSegment(const Segment &seg)
MemoryImage & move(std::function< Addr(Addr)> mapper)
This object is a proxy for a port or other object which implements the functional response protocol,...
Segment(const std::string &_name, Addr _base, const ImageFileDataPtr &_ifd, Addr offset, size_t _size)
bool contains(Addr addr) const
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
#define panic_if(cond,...)
Conditional panic macro that checks the supplied condition and only panics if the condition is true a...
void addSegments(std::initializer_list< Segment > segs)
const std::vector< Segment > & segments() const
std::shared_ptr< ImageFileData > ImageFileDataPtr
MemoryImage(const Segment &seg)
bool write(const PortProxy &proxy) const
MemoryImage & mask(Addr m)
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
bool writeSegment(const Segment &seg, const PortProxy &proxy) const
Generated on Sun Jul 30 2023 01:56:51 for gem5 by doxygen 1.8.17