|
gem5
v21.0.1.0
|
#include <fstream>#include <unordered_map>#include "params/CowDiskImage.hh"#include "params/DiskImage.hh"#include "params/RawDiskImage.hh"#include "sim/sim_object.hh"Go to the source code of this file.
Classes | |
| class | DiskImage |
| Basic interface for accessing a disk image. More... | |
| class | RawDiskImage |
| Specialization for accessing a raw disk image. More... | |
| class | CowDiskImage |
| Specialization for accessing a copy-on-write disk image layer. More... | |
| struct | CowDiskImage::Sector |
Macros | |
| #define | SectorSize (512) |
Functions | |
| void | SafeRead (std::ifstream &stream, void *data, int count) |
| template<class T > | |
| void | SafeRead (std::ifstream &stream, T &data) |
| template<class T > | |
| void | SafeReadSwap (std::ifstream &stream, T &data) |
| void | SafeWrite (std::ofstream &stream, const void *data, int count) |
| template<class T > | |
| void | SafeWrite (std::ofstream &stream, const T &data) |
| template<class T > | |
| void | SafeWriteSwap (std::ofstream &stream, const T &data) |
Disk Image Interfaces
Definition in file disk_image.hh.
| #define SectorSize (512) |
Definition at line 44 of file disk_image.hh.
| void SafeRead | ( | std::ifstream & | stream, |
| T & | data | ||
| ) |
Definition at line 222 of file disk_image.cc.
References data, and SafeRead().
| void SafeRead | ( | std::ifstream & | stream, |
| void * | data, | ||
| int | count | ||
| ) |
Definition at line 207 of file disk_image.cc.
References X86ISA::count, data, and panic.
Referenced by CowDiskImage::open(), SafeRead(), and SafeReadSwap().
| void SafeReadSwap | ( | std::ifstream & | stream, |
| T & | data | ||
| ) |
Definition at line 229 of file disk_image.cc.
References data, letoh(), and SafeRead().
Referenced by CowDiskImage::open().
| void SafeWrite | ( | std::ofstream & | stream, |
| const T & | data | ||
| ) |
Definition at line 305 of file disk_image.cc.
References data, and SafeWrite().
| void SafeWrite | ( | std::ofstream & | stream, |
| const void * | data, | ||
| int | count | ||
| ) |
Definition at line 290 of file disk_image.cc.
References X86ISA::count, data, and panic.
Referenced by SafeWrite(), SafeWriteSwap(), and CowDiskImage::save().
| void SafeWriteSwap | ( | std::ofstream & | stream, |
| const T & | data | ||
| ) |
Definition at line 312 of file disk_image.cc.
References data, letoh(), and SafeWrite().
Referenced by CowDiskImage::save().