gem5
|
#include <algorithm>
#include <cassert>
#include <vector>
#include "base/misc.hh"
#include "sim/serialize.hh"
Go to the source code of this file.
Classes | |
class | CircleBuf< T > |
Circular buffer backed by a vector. More... | |
class | Fifo< T > |
Simple FIFO implementation backed by a circular buffer. More... | |
Functions | |
template<typename T > | |
void | arrayParamOut (CheckpointOut &cp, const std::string &name, const CircleBuf< T > ¶m) |
template<typename T > | |
void | arrayParamIn (CheckpointIn &cp, const std::string &name, CircleBuf< T > ¶m) |
template<typename T > | |
void | arrayParamOut (CheckpointOut &cp, const std::string &name, const Fifo< T > ¶m) |
template<typename T > | |
void | arrayParamIn (CheckpointIn &cp, const std::string &name, Fifo< T > ¶m) |
void arrayParamIn | ( | CheckpointIn & | cp, |
const std::string & | name, | ||
CircleBuf< T > & | param | ||
) |
Definition at line 261 of file circlebuf.hh.
References CircleBuf< T >::flush(), and CircleBuf< T >::write().
Referenced by arrayParamIn(), X86ISA::PS2Device::unserialize(), EthPacketData::unserialize(), CopyEngine::CopyEngineChannel::unserialize(), MC146818::unserialize(), IGbE::DescCache< T >::unserialize(), and unserialize().
void arrayParamIn | ( | CheckpointIn & | cp, |
const std::string & | name, | ||
Fifo< T > & | param | ||
) |
Definition at line 283 of file circlebuf.hh.
References arrayParamIn(), Fifo< T >::capacity(), fatal_if(), Fifo< T >::flush(), and Fifo< T >::write().
void arrayParamOut | ( | CheckpointOut & | cp, |
const std::string & | name, | ||
const CircleBuf< T > & | param | ||
) |
Definition at line 251 of file circlebuf.hh.
References CircleBuf< T >::peek(), and CircleBuf< T >::size().
Referenced by arrayParamOut(), X86ISA::PS2Device::serialize(), EthPacketData::serialize(), CopyEngine::CopyEngineChannel::serialize(), MC146818::serialize(), IGbE::DescCache< T >::serialize(), and serialize().
void arrayParamOut | ( | CheckpointOut & | cp, |
const std::string & | name, | ||
const Fifo< T > & | param | ||
) |
Definition at line 273 of file circlebuf.hh.
References arrayParamOut(), Fifo< T >::peek(), and Fifo< T >::size().