gem5
v20.1.0.0
|
#include <algorithm>
#include <cassert>
#include <vector>
#include "base/circular_queue.hh"
#include "base/logging.hh"
#include "sim/serialize.hh"
Go to the source code of this file.
Classes | |
class | CircleBuf< T > |
Circular buffer backed by a vector though a CircularQueue. 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 184 of file circlebuf.hh.
References CircularQueue< T >::flush(), name(), and CircleBuf< T >::write().
Referenced by arrayParamIn(), PS2Device::unserialize(), EthPacketData::unserialize(), Globals::unserialize(), CopyEngine::CopyEngineChannel::unserialize(), MC146818::unserialize(), IGbE::DescCache< iGbReg::RxDesc >::unserialize(), and unserialize().
void arrayParamIn | ( | CheckpointIn & | cp, |
const std::string & | name, | ||
Fifo< T > & | param | ||
) |
Definition at line 206 of file circlebuf.hh.
References arrayParamIn(), Fifo< T >::capacity(), fatal_if, Fifo< T >::flush(), name(), and Fifo< T >::write().
void arrayParamOut | ( | CheckpointOut & | cp, |
const std::string & | name, | ||
const CircleBuf< T > & | param | ||
) |
Definition at line 174 of file circlebuf.hh.
References name(), CircleBuf< T >::peek(), and CircularQueue< T >::size().
Referenced by arrayParamOut(), PS2Device::serialize(), EthPacketData::serialize(), CopyEngine::CopyEngineChannel::serialize(), MC146818::serialize(), IGbE::DescCache< iGbReg::RxDesc >::serialize(), and serialize().
void arrayParamOut | ( | CheckpointOut & | cp, |
const std::string & | name, | ||
const Fifo< T > & | param | ||
) |
Definition at line 196 of file circlebuf.hh.
References arrayParamOut(), name(), Fifo< T >::peek(), and Fifo< T >::size().