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>
59 const uint8_t *_data,
size_t _size) :
72 "Segment outside the bounds of the image data");
83 const uint8_t *
data =
nullptr;
119 for (
auto &
seg: segs)
140 max = std::max(max,
seg.base +
seg.size);
149 min = std::min(min,
seg.base);
166 static inline std::ostream &
176 #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.
GEM5_DEPRECATED_NAMESPACE(GuestABI, guest_abi)
#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 Tue Sep 21 2021 12:24:57 for gem5 by doxygen 1.8.17