gem5
v20.1.0.0
|
#include "dev/storage/disk_image.hh"
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
#include <cerrno>
#include <cstring>
#include <fstream>
#include <string>
#include "base/callback.hh"
#include "base/logging.hh"
#include "base/trace.hh"
#include "debug/DiskImageRead.hh"
#include "debug/DiskImageWrite.hh"
#include "sim/byteswap.hh"
#include "sim/sim_exit.hh"
Go to the source code of this file.
Functions | |
void | SafeRead (ifstream &stream, void *data, int count) |
template<class T > | |
void | SafeRead (ifstream &stream, T &data) |
template<class T > | |
void | SafeReadSwap (ifstream &stream, T &data) |
void | SafeWrite (ofstream &stream, const void *data, int count) |
template<class T > | |
void | SafeWrite (ofstream &stream, const T &data) |
template<class T > | |
void | SafeWriteSwap (ofstream &stream, const T &data) |
Disk Image Definitions
Definition in file disk_image.cc.
void SafeRead | ( | ifstream & | stream, |
T & | data | ||
) |
Definition at line 225 of file disk_image.cc.
References data, and SafeRead().
void SafeRead | ( | ifstream & | stream, |
void * | data, | ||
int | count | ||
) |
Definition at line 210 of file disk_image.cc.
References X86ISA::count, data, and panic.
Referenced by CowDiskImage::open(), SafeRead(), and SafeReadSwap().
void SafeReadSwap | ( | ifstream & | stream, |
T & | data | ||
) |
Definition at line 232 of file disk_image.cc.
References data, letoh(), and SafeRead().
Referenced by CowDiskImage::open().
void SafeWrite | ( | ofstream & | stream, |
const T & | data | ||
) |
Definition at line 308 of file disk_image.cc.
References data, and SafeWrite().
void SafeWrite | ( | ofstream & | stream, |
const void * | data, | ||
int | count | ||
) |
Definition at line 293 of file disk_image.cc.
References X86ISA::count, data, and panic.
Referenced by SafeWrite(), and SafeWriteSwap().
void SafeWriteSwap | ( | ofstream & | stream, |
const T & | data | ||
) |
Definition at line 315 of file disk_image.cc.
References data, letoh(), and SafeWrite().