gem5 v24.0.0.0
|
Disk Image Interfaces. More...
#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 | gem5::DiskImage |
Basic interface for accessing a disk image. More... | |
class | gem5::RawDiskImage |
Specialization for accessing a raw disk image. More... | |
class | gem5::CowDiskImage |
Specialization for accessing a copy-on-write disk image layer. More... | |
struct | gem5::CowDiskImage::Sector |
Namespaces | |
namespace | gem5 |
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved. | |
Macros | |
#define | SectorSize (512) |
Functions | |
void | gem5::SafeRead (std::ifstream &stream, void *data, int count) |
template<class T > | |
void | gem5::SafeRead (std::ifstream &stream, T &data) |
template<class T > | |
void | gem5::SafeReadSwap (std::ifstream &stream, T &data) |
void | gem5::SafeWrite (std::ofstream &stream, const void *data, int count) |
template<class T > | |
void | gem5::SafeWrite (std::ofstream &stream, const T &data) |
template<class T > | |
void | gem5::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.
Referenced by gem5::IdeDisk::dmaPrdReadDone(), gem5::IdeDisk::dmaReadDone(), gem5::IdeDisk::doDmaDataRead(), gem5::IdeDisk::doDmaDataWrite(), gem5::MmDisk::MmDisk(), gem5::CowDiskImage::read(), gem5::MmDisk::read(), gem5::RawDiskImage::read(), gem5::SimpleDisk::read(), gem5::VirtIOBlock::read(), gem5::IdeDisk::readDisk(), gem5::UFSHostDevice::UFSSCSIDevice::readFlash(), gem5::MmDisk::serialize(), gem5::RawDiskImage::size(), gem5::IdeDisk::startCommand(), gem5::UFSHostDevice::UFSSCSIDevice::UFSSCSIDevice(), gem5::IdeDisk::updateState(), gem5::CowDiskImage::write(), gem5::MmDisk::write(), gem5::RawDiskImage::write(), gem5::VirtIOBlock::write(), gem5::IdeDisk::writeDisk(), and gem5::UFSHostDevice::UFSSCSIDevice::writeFlash().