gem5
v20.0.0.0
|
A Packet is used to encapsulate a transfer between two objects in the memory system (e.g., the L1 and L2 cache). More...
#include <packet.hh>
Classes | |
class | PrintReqState |
Object used to maintain state of a PrintReq. More... | |
struct | SenderState |
A virtual base opaque structure used to hold state associated with the packet (e.g., an MSHR), specific to a SimObject that sees the packet. More... | |
Public Types | |
typedef uint32_t | FlagsType |
typedef ::Flags< FlagsType > | Flags |
typedef MemCmd::Command | Command |
Public Member Functions | |
void | pushSenderState (SenderState *sender_state) |
Push a new sender state to the packet and make the current sender state the predecessor of the new one. More... | |
SenderState * | popSenderState () |
Pop the top of the state stack and return a pointer to it. More... | |
template<typename T > | |
T * | findNextSenderState () const |
Go through the sender state stack and return the first instance that is of type T (as determined by a dynamic_cast). More... | |
const std::string & | cmdString () const |
Return the string name of the cmd field (for debugging and tracing). More... | |
int | cmdToIndex () const |
Return the index of this command. More... | |
bool | isRead () const |
bool | isWrite () const |
bool | isUpgrade () const |
bool | isRequest () const |
bool | isResponse () const |
bool | needsWritable () const |
bool | needsResponse () const |
bool | isInvalidate () const |
bool | isEviction () const |
bool | isClean () const |
bool | fromCache () const |
bool | isWriteback () const |
bool | hasData () const |
bool | hasRespData () const |
bool | isLLSC () const |
bool | isError () const |
bool | isPrint () const |
bool | isFlush () const |
bool | isWholeLineWrite (unsigned blk_size) |
void | setExpressSnoop () |
The express snoop flag is used for two purposes. More... | |
bool | isExpressSnoop () const |
void | setResponderHadWritable () |
On responding to a snoop request (which only happens for Modified or Owned lines), make sure that we can transform an Owned response to a Modified one. More... | |
bool | responderHadWritable () const |
void | copyResponderFlags (const PacketPtr pkt) |
Copy the reponse flags from an input packet to this packet. More... | |
void | setWriteThrough () |
A writeback/writeclean cmd gets propagated further downstream by the receiver when the flag is set. More... | |
void | clearWriteThrough () |
bool | writeThrough () const |
void | setSatisfied () |
Set when a request hits in a cache and the cache is not going to respond. More... | |
bool | satisfied () const |
void | setSuppressFuncError () |
bool | suppressFuncError () const |
void | setBlockCached () |
bool | isBlockCached () const |
void | clearBlockCached () |
uint8_t | qosValue () const |
QoS Value getter Returns 0 if QoS value was never set (constructor default). More... | |
void | qosValue (const uint8_t qos_value) |
QoS Value setter Interface for setting QoS priority value of the packet. More... | |
MasterID | masterId () const |
void | setBadAddress () |
void | copyError (Packet *pkt) |
Addr | getAddr () const |
void | setAddr (Addr _addr) |
Update the address of this packet mid-transaction. More... | |
unsigned | getSize () const |
AddrRange | getAddrRange () const |
Get address range to which this packet belongs. More... | |
Addr | getOffset (unsigned int blk_size) const |
Addr | getBlockAddr (unsigned int blk_size) const |
bool | isSecure () const |
AtomicOpFunctor * | getAtomicOp () const |
Accessor function to atomic op. More... | |
bool | isAtomicOp () const |
void | convertScToWrite () |
It has been determined that the SC packet should successfully update memory. More... | |
void | convertLlToRead () |
When ruby is in use, Ruby will monitor the cache line and the phys memory should treat LL ops as normal reads. More... | |
Packet (const RequestPtr &_req, MemCmd _cmd) | |
Constructor. More... | |
Packet (const RequestPtr &_req, MemCmd _cmd, int _blkSize, PacketId _id=0) | |
Alternate constructor if you are trying to create a packet with a request that is for a whole block, not the address from the req. More... | |
Packet (const PacketPtr pkt, bool clear_flags, bool alloc_data) | |
Alternate constructor for copying a packet. More... | |
~Packet () | |
clean up packet variables More... | |
void | makeResponse () |
Take a request packet and modify it in place to be suitable for returning as a response to that request. More... | |
void | makeAtomicResponse () |
void | makeTimingResponse () |
void | setFunctionalResponseStatus (bool success) |
void | setSize (unsigned size) |
bool | matchBlockAddr (const Addr addr, const bool is_secure, const int blk_size) const |
Check if packet corresponds to a given block-aligned address and address space. More... | |
bool | matchBlockAddr (const PacketPtr pkt, const int blk_size) const |
Check if this packet refers to the same block-aligned address and address space as another packet. More... | |
bool | matchAddr (const Addr addr, const bool is_secure) const |
Check if packet corresponds to a given address and address space. More... | |
bool | matchAddr (const PacketPtr pkt) const |
Check if this packet refers to the same address and address space as another packet. More... | |
template<typename T > | |
T | getRaw () const |
Get the data in the packet without byte swapping. More... | |
template<typename T > | |
void | setRaw (T v) |
Set the value in the data pointer to v without byte swapping. More... | |
bool | trySatisfyFunctional (PacketPtr other) |
Check a functional request against a memory value stored in another packet (i.e. More... | |
bool | mustCheckAbove () const |
Does the request need to check for cached copies of the same block in the memory hierarchy above. More... | |
bool | isCleanEviction () const |
Is this packet a clean eviction, including both actual clean evict packets, but also clean writebacks. More... | |
bool | isMaskedWrite () const |
bool | trySatisfyFunctional (Printable *obj, Addr base, bool is_secure, int size, uint8_t *_data) |
Check a functional request against a memory value represented by a base/size pair and an associated data array. More... | |
void | pushLabel (const std::string &lbl) |
Push label for PrintReq (safe to call unconditionally). More... | |
void | popLabel () |
Pop label for PrintReq (safe to call unconditionally). More... | |
void | print (std::ostream &o, int verbosity=0, const std::string &prefix="") const |
std::string | print () const |
A no-args wrapper of print(std::ostream...) meant to be invoked from DPRINTFs avoiding string overheads in fast mode. More... | |
void | setCacheResponding () |
Snoop flags. More... | |
bool | cacheResponding () const |
void | setHasSharers () |
On fills, the hasSharers flag is used by the caches in combination with the cacheResponding flag, as clarified above. More... | |
bool | hasSharers () const |
Data accessor mehtods | |
template<typename T > | |
void | dataStatic (T *p) |
Set the data pointer to the following value that should not be freed. More... | |
template<typename T > | |
void | dataStaticConst (const T *p) |
Set the data pointer to the following value that should not be freed. More... | |
template<typename T > | |
void | dataDynamic (T *p) |
Set the data pointer to a value that should have delete [] called on it. More... | |
template<typename T > | |
T * | getPtr () |
get a pointer to the data ptr. More... | |
template<typename T > | |
const T * | getConstPtr () const |
template<typename T > | |
T | getBE () const |
Get the data in the packet byte swapped from big endian to host endian. More... | |
template<typename T > | |
T | getLE () const |
Get the data in the packet byte swapped from little endian to host endian. More... | |
template<typename T > | |
T | get (ByteOrder endian) const |
Get the data in the packet byte swapped from the specified endianness. More... | |
template<typename T > | |
void | setBE (T v) |
Set the value in the data pointer to v as big endian. More... | |
template<typename T > | |
void | setLE (T v) |
Set the value in the data pointer to v as little endian. More... | |
template<typename T > | |
void | set (T v, ByteOrder endian) |
Set the value in the data pointer to v using the specified endianness. More... | |
uint64_t | getUintX (ByteOrder endian) const |
Get the data in the packet byte swapped from the specified endianness and zero-extended to 64 bits. More... | |
void | setUintX (uint64_t w, ByteOrder endian) |
Set the value in the word w after truncating it to the length of the packet and then byteswapping it to the desired endianness. More... | |
void | setData (const uint8_t *p) |
Copy data into the packet from the provided pointer. More... | |
void | setDataFromBlock (const uint8_t *blk_data, int blkSize) |
Copy data into the packet from the provided block pointer, which is aligned to the given block size. More... | |
void | writeData (uint8_t *p) const |
Copy data from the packet to the memory at the provided pointer. More... | |
void | writeDataToBlock (uint8_t *blk_data, int blkSize) const |
Copy data from the packet to the provided block pointer, which is aligned to the given block size. More... | |
void | deleteData () |
delete the data pointed to in the data pointer. More... | |
void | allocate () |
Allocate memory for the packet. More... | |
![]() | |
Printable () | |
virtual | ~Printable () |
Static Public Member Functions | |
static MemCmd | makeReadCmd (const RequestPtr &req) |
Generate the appropriate read MemCmd based on the Request flags. More... | |
static MemCmd | makeWriteCmd (const RequestPtr &req) |
Generate the appropriate write MemCmd based on the Request flags. More... | |
static PacketPtr | createRead (const RequestPtr &req) |
Constructor-like methods that return Packets based on Request objects. More... | |
static PacketPtr | createWrite (const RequestPtr &req) |
Public Attributes | |
MemCmd | cmd |
The command field of the packet. More... | |
const PacketId | id |
RequestPtr | req |
A pointer to the original request. More... | |
uint32_t | headerDelay |
The extra delay from seeing the packet until the header is transmitted. More... | |
uint32_t | snoopDelay |
Keep track of the extra delay incurred by snooping upwards before sending a request down the memory system. More... | |
uint32_t | payloadDelay |
The extra pipelining delay from seeing the packet until the end of payload is transmitted by the component that provided it (if any). More... | |
SenderState * | senderState |
This packet's sender state. More... | |
Private Types | |
enum | : FlagsType { COPY_FLAGS = 0x0000003F, RESPONDER_FLAGS = 0x00000009, HAS_SHARERS = 0x00000001, EXPRESS_SNOOP = 0x00000002, RESPONDER_HAD_WRITABLE = 0x00000004, CACHE_RESPONDING = 0x00000008, WRITE_THROUGH = 0x00000010, SATISFIED = 0x00000020, VALID_ADDR = 0x00000100, VALID_SIZE = 0x00000200, STATIC_DATA = 0x00001000, DYNAMIC_DATA = 0x00002000, SUPPRESS_FUNC_ERROR = 0x00008000, BLOCK_CACHED = 0x00010000 } |
Private Attributes | |
Flags | flags |
PacketDataPtr | data |
A pointer to the data being transferred. More... | |
Addr | addr |
The address of the request. More... | |
bool | _isSecure |
True if the request targets the secure memory space. More... | |
unsigned | size |
The size of the request or transfer. More... | |
std::vector< bool > | bytesValid |
Track the bytes found that satisfy a functional read. More... | |
uint8_t | _qosValue |
A Packet is used to encapsulate a transfer between two objects in the memory system (e.g., the L1 and L2 cache).
(In contrast, a single Request travels all the way from the requester to the ultimate destination and back, possibly being conveyed by several different Packets along the way.)
typedef MemCmd::Command Packet::Command |
typedef ::Flags<FlagsType> Packet::Flags |
typedef uint32_t Packet::FlagsType |
|
private |
|
inline |
Constructor.
Note that a Request object must be constructed first, but the Requests's physical address and size fields need not be valid. The command must be supplied.
Definition at line 790 of file packet.hh.
References Flags< T >::set().
|
inline |
Alternate constructor if you are trying to create a packet with a request that is for a whole block, not the address from the req.
this allows for overriding the size/addr of the req.
Definition at line 812 of file packet.hh.
References Flags< T >::set().
|
inline |
Alternate constructor for copying a packet.
Copy all fields except if the original packet's data was dynamic, don't copy that, as we can't guarantee that the new packet's lifetime is less than that of the original packet. In this case the new packet should allocate its own data.
Definition at line 834 of file packet.hh.
References data, flags, Flags< T >::isSet(), and Flags< T >::set().
|
inline |
Allocate memory for the packet.
Definition at line 1226 of file packet.hh.
References MemCmd::hasData(), Flags< T >::noneSet(), and Flags< T >::set().
Referenced by SimpleCache::accessTiming(), X86ISA::buildIntPacket(), Cache::cleanEvictBlk(), Cache::createMissPacket(), Prefetcher::Queued::DeferredPacket::createPkt(), SeriesRequestGenerator::initiate(), InvalidateGenerator::initiate(), Minor::makePacketForRequest(), GpuDispatcher::read(), replaceUpgrade(), BaseCache::writebackBlk(), and BaseCache::writecleanBlk().
|
inline |
Definition at line 585 of file packet.hh.
References Flags< T >::isSet().
Referenced by AbstractMemory::access(), copyResponderFlags(), CoherentXBar::forwardAtomic(), BaseCache::handleFill(), Cache::handleSnoop(), Cache::isCachedAbove(), SnoopFilter::lookupRequest(), NoncoherentCache::recvAtomic(), Cache::recvAtomic(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::recvAtomic(), SimpleMemory::recvAtomic(), DRAMSim2::recvAtomic(), Bridge::BridgeSlavePort::recvAtomic(), QoS::MemSinkCtrl::recvAtomic(), CommMonitor::recvAtomic(), DRAMCtrl::recvAtomic(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::recvAtomicBackdoor(), NoncoherentCache::recvTimingReq(), SimpleTimingPort::recvTimingReq(), HMCController::recvTimingReq(), RubyPort::MemSlavePort::recvTimingReq(), Cache::recvTimingReq(), NoncoherentXBar::recvTimingReq(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::recvTimingReq(), SerialLink::SerialLinkSlavePort::recvTimingReq(), SimpleMemory::recvTimingReq(), Bridge::BridgeSlavePort::recvTimingReq(), DRAMSim2::recvTimingReq(), MemCheckerMonitor::recvTimingReq(), AddrMapper::recvTimingReq(), QoS::MemSinkCtrl::recvTimingReq(), CommMonitor::recvTimingReq(), CoherentXBar::recvTimingReq(), DRAMCtrl::recvTimingReq(), DefaultFetch< Impl >::IcachePort::recvTimingResp(), DmaPort::recvTimingResp(), CoherentXBar::recvTimingSnoopReq(), BaseCache::sendMSHRQueuePacket(), CoherentXBar::sinkPacket(), SnoopFilter::updateSnoopForward(), and SnoopFilter::updateSnoopResponse().
|
inline |
Definition at line 687 of file packet.hh.
References Flags< T >::clear().
Referenced by BaseCache::access().
|
inline |
Definition at line 667 of file packet.hh.
References Flags< T >::clear().
Referenced by CoherentXBar::recvAtomicBackdoor(), and CoherentXBar::recvTimingReq().
|
inline |
Return the string name of the cmd field (for debugging and tracing).
Definition at line 517 of file packet.hh.
References MemCmd::toString().
Referenced by AbstractMemory::functionalAccess(), DmaPort::handleResp(), Sequencer::hitCallback(), print(), DRAMCtrl::recvAtomic(), NoncoherentXBar::recvAtomicBackdoor(), AtomicSimpleCPU::AtomicCPUDPort::recvAtomicSnoop(), RubyPort::MemSlavePort::recvFunctional(), NoncoherentXBar::recvFunctional(), AtomicSimpleCPU::AtomicCPUDPort::recvFunctionalSnoop(), HMCController::recvTimingReq(), RubyPort::MemSlavePort::recvTimingReq(), NoncoherentXBar::recvTimingReq(), SerialLink::SerialLinkSlavePort::recvTimingReq(), SimpleMemory::recvTimingReq(), Bridge::BridgeSlavePort::recvTimingReq(), QoS::MemSinkCtrl::recvTimingReq(), DRAMCtrl::recvTimingReq(), NoncoherentXBar::recvTimingResp(), SerialLink::SerialLinkMasterPort::recvTimingResp(), Bridge::BridgeMasterPort::recvTimingResp(), LSQ< Impl >::recvTimingSnoopReq(), RubyPort::ruby_hit_callback(), PacketQueue::schedSendTiming(), AtomicSimpleCPU::threadSnoop(), trySatisfyFunctional(), DmaPort::trySendTimingReq(), and BaseTrafficGen::update().
|
inline |
Return the index of this command.
Definition at line 520 of file packet.hh.
References MemCmd::toInt().
Referenced by BaseCache::CacheStats::cmdStats(), NoncoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvAtomicBackdoor(), HMCController::recvTimingReq(), NoncoherentXBar::recvTimingReq(), CoherentXBar::recvTimingReq(), NoncoherentXBar::recvTimingResp(), CoherentXBar::recvTimingResp(), CoherentXBar::recvTimingSnoopReq(), and CoherentXBar::recvTimingSnoopResp().
|
inline |
When ruby is in use, Ruby will monitor the cache line and the phys memory should treat LL ops as normal reads.
Definition at line 778 of file packet.hh.
References MemCmd::isLLSC(), MemCmd::isRead(), and MemCmd::ReadReq.
Referenced by RubyPort::MemSlavePort::hitCallback().
|
inline |
It has been determined that the SC packet should successfully update memory.
Therefore, convert this SC packet to a normal write.
Definition at line 766 of file packet.hh.
References MemCmd::isLLSC(), MemCmd::isWrite(), and MemCmd::WriteReq.
Referenced by RubyPort::MemSlavePort::hitCallback().
|
inline |
Definition at line 718 of file packet.hh.
References cmd, and isError().
Referenced by NoncoherentCache::handleAtomicReqMiss(), Cache::handleAtomicReqMiss(), Minor::LSQ::SplitDataRequest::retireResponse(), NoncoherentCache::serviceMSHRTargets(), and Cache::serviceMSHRTargets().
void Packet::copyResponderFlags | ( | const PacketPtr | pkt | ) |
Copy the reponse flags from an input packet to this packet.
The reponse flags determine whether a responder has been found and the state at which the block will be at the destination.
The packet that we will copy flags from
Definition at line 306 of file packet.cc.
References cacheResponding(), flags, isRequest(), RESPONDER_FLAGS, and Flags< T >::set().
Referenced by Cache::handleSnoop(), and Cache::serviceMSHRTargets().
|
inlinestatic |
Constructor-like methods that return Packets based on Request objects.
Fine-tune the MemCmd type if it's not a vanilla read or write.
Definition at line 907 of file packet.hh.
References MemCmd::Packet.
Referenced by TimingSimpleCPU::buildPacket(), LSQ< Impl >::SingleDataRequest::buildPackets(), LSQ< Impl >::SplitDataRequest::buildPackets(), TraceCPU::ElasticDataGen::executeMemReq(), Minor::makePacketForRequest(), CheckerCPU::readMem(), LSQ< Impl >::SplitDataRequest::recvTimingResp(), and AbstractController::serviceMemoryQueue().
|
inlinestatic |
Definition at line 913 of file packet.hh.
References MemCmd::Packet.
Referenced by TimingSimpleCPU::buildPacket(), LSQ< Impl >::SingleDataRequest::buildPackets(), LSQ< Impl >::SplitDataRequest::buildPackets(), TraceCPU::ElasticDataGen::executeMemReq(), Minor::makePacketForRequest(), LSQ< Impl >::SplitDataRequest::recvTimingResp(), and AbstractController::serviceMemoryQueue().
|
inline |
Set the data pointer to a value that should have delete [] called on it.
Dynamic data is local to this packet, and as the packet travels from source to destination, forwarded packets will allocate their own data. When a packet reaches the final destination it will populate the dynamic data of that specific packet, and on the way back towards the source, memcpy will be invoked in every step where a new packet was created e.g. in the caches. Ultimately when the response reaches the source a final memcpy is needed to extract the data from the packet before it is deallocated.
Definition at line 1072 of file packet.hh.
References Flags< T >::noneSet(), and Flags< T >::set().
Referenced by LSQ< Impl >::SplitDataRequest::buildPackets(), TimingSimpleCPU::buildSplitPacket(), TraceCPU::ElasticDataGen::executeMemReq(), FetchUnit::fetch(), DefaultFetch< Impl >::finishTranslation(), BaseGen::getPacket(), Check::initiateAction(), Check::initiateCheck(), Check::initiatePrefetch(), Minor::makePacketForRequest(), TraceCPU::FixedRetryGen::send(), and TimingSimpleCPU::sendData().
|
inline |
Set the data pointer to the following value that should not be freed.
Static data allows us to do a single memcpy even if multiple packets are required to get from source to destination and back. In essence the pointer is set calling dataStatic on the original packet, and whenever this packet is copied and forwarded the same pointer is passed on. When a packet eventually reaches the destination holding the data, it is copied once into the location originally set. On the way back to the source, no copies are necessary.
Definition at line 1034 of file packet.hh.
References Flags< T >::noneSet(), and Flags< T >::set().
Referenced by AtomicSimpleCPU::amoMem(), LSQ< Impl >::SplitDataRequest::buildPackets(), TimingSimpleCPU::buildSplitPacket(), DmaPort::dmaAction(), Shader::doFunctionalAccess(), BaseKvmCPU::doMMIOAccess(), SMMUProcess::doRead(), ItsProcess::doRead(), SMMUProcess::doWrite(), ItsProcess::doWrite(), HsailISA::AtomicInst< MemDataType, AddrOperandType, NumSrcOperands, HasDst >::execAtomic(), HsailISA::StInst< MemDataType, SrcDataType, AddrOperandType >::execSt(), ArmISA::TableWalker::fetchDescriptor(), X86KvmCPU::handleKvmExitIO(), LSQ< Impl >::SplitDataRequest::handleLocalAccess(), Gcn3ISA::Inst_FLAT::initAtomicAccess(), HsailISA::LdInst< MemDataType, DestDataType, AddrOperandType >::initiateAcc(), Gcn3ISA::Inst_SMEM::initMemRead(), Gcn3ISA::Inst_MUBUF::initMemRead(), Gcn3ISA::Inst_FLAT::initMemRead(), Gcn3ISA::Inst_SMEM::initMemWrite(), Gcn3ISA::Inst_MUBUF::initMemWrite(), Gcn3ISA::Inst_FLAT::initMemWrite(), LSQUnit< Impl >::read(), ArmISA::Stage2MMU::readDataUntimed(), AtomicSimpleCPU::readMem(), CheckerCPU::readMem(), ComputeUnit::DTLBPort::recvTimingResp(), LSQ< Impl >::SplitDataRequest::recvTimingResp(), ComputeUnit::sendRequest(), AtomicSimpleCPU::tick(), Checker< O3CPUImpl >::verify(), LSQUnit< Impl >::writebackStores(), BaseCache::writebackVisitor(), and AtomicSimpleCPU::writeMem().
|
inline |
Set the data pointer to the following value that should not be freed.
This version of the function allows the pointer passed to us to be const. To avoid issues down the line we cast the constness away, the alternative would be to keep both a const and non-const data pointer and cleverly choose between them. Note that this is only allowed for static data.
Definition at line 1051 of file packet.hh.
References Flags< T >::noneSet(), MipsISA::p, and Flags< T >::set().
|
inline |
delete the data pointed to in the data pointer.
Ok to call to matter how data was allocted.
Definition at line 1215 of file packet.hh.
References Flags< T >::clear(), and Flags< T >::isSet().
|
inline |
Go through the sender state stack and return the first instance that is of type T (as determined by a dynamic_cast).
If there is no sender state of type T, NULL is returned.
Definition at line 504 of file packet.hh.
References Packet::SenderState::predecessor, and ArmISA::t.
Referenced by MSHR::TargetList::add(), Sequencer::hitCallback(), and Minor::LSQ::tryToSend().
|
inline |
Definition at line 540 of file packet.hh.
References MemCmd::fromCache().
Referenced by AbstractMemory::access(), BaseCache::access(), Cache::handleAtomicReqMiss(), SnoopFilter::lookupRequest(), Cache::satisfyRequest(), and MSHR::TargetList::updateFlags().
|
inline |
Get the data in the packet byte swapped from the specified endianness.
Definition at line 82 of file packet_access.hh.
References BigEndianByteOrder, LittleEndianByteOrder, and panic.
Referenced by getMem().
|
inline |
Definition at line 720 of file packet.hh.
References addr, and Flags< T >::isSet().
Referenced by Cache::access(), AbstractMemory::access(), BaseCache::access(), DRAMSim2::accessAndRespond(), DRAMCtrl::accessAndRespond(), SimpleCache::accessTiming(), DRAMCtrl::addToReadQueue(), DRAMCtrl::addToWriteQueue(), BaseCache::allocateBlock(), GPUCoalescer::atomicCallback(), SMMUv3SlaveInterface::atsMasterRecvTimingResp(), SMMUv3SlaveInterface::atsSlaveRecvAtomic(), SMMUv3SlaveInterface::atsSlaveRecvTimingReq(), AbstractMemory::checkLockedAddrList(), LSQUnit< Impl >::checkSnoop(), TimingSimpleCPU::completeIfetch(), Cache::createMissPacket(), IdeController::dispatchAccess(), SparcISA::TLB::doMmuRegRead(), SparcISA::TLB::doMmuRegWrite(), AddressMonitor::doMonitor(), SMMUTranslRequest::fromPacket(), MessageBuffer::functionalAccess(), AbstractMemory::functionalAccess(), BaseCache::functionalAccess(), RubySystem::functionalRead(), RubySystem::functionalWrite(), RubyRequest::functionalWrite(), getAddrRange(), Prefetcher::Queued::getPacket(), GPUCoalescer::getRequestStatus(), NoncoherentCache::handleAtomicReqMiss(), BaseCache::handleFill(), ArmISA::handleLockedSnoop(), MipsISA::handleLockedSnoop(), RiscvISA::handleLockedSnoop(), Minor::Execute::handleMemResponse(), SimpleMemobj::handleRequest(), SimpleCache::handleRequest(), DmaPort::handleResp(), SimpleMemobj::handleResponse(), SimpleCache::handleResponse(), Cache::handleSnoop(), BaseCache::handleTimingReqMiss(), Sequencer::hitCallback(), GPUCoalescer::hitCallback(), SimpleCache::insert(), BaseTags::insertBlock(), Sequencer::insertRequest(), GPUCoalescer::insertRequest(), I2CBus::isClockSet(), I2CBus::isEnd(), I2CBus::isStart(), Sequencer::issueRequest(), GPUCoalescer::issueRequest(), DMASequencer::makeRequest(), Sequencer::makeRequest(), GPUCoalescer::makeRequest(), SMMUv3::masterRecvReqRetry(), SMMUv3::masterRecvTimingResp(), SMMUv3::masterTableWalkRecvReqRetry(), SMMUv3::masterTableWalkRecvTimingResp(), matchAddr(), BaseCPU::mwait(), Prefetcher::BOP::notifyFill(), Prefetcher::SBOOE::notifyFill(), sc_gem5::packet2payload(), Prefetcher::Base::PrefetchInfo::PrefetchInfo(), print(), Prefetcher::Base::probeNotify(), QoS::MemSinkCtrl::processNextReqEvent(), SimpleUart::read(), PciVirtIO::read(), MmioVirtIO::read(), X86ISA::I8237::read(), MmDisk::read(), DumbTOD::read(), Sp805::read(), NoMaliGpu::read(), Pl011::read(), AmbaFake::read(), A9SCU::read(), X86ISA::Speaker::read(), IsaFake::read(), Uart8250::read(), X86ISA::Cmos::read(), X86ISA::I8254::read(), FVPBasePwrCtrl::read(), X86ISA::I82094AA::read(), HDLcd::read(), X86ISA::I8259::read(), Gicv2m::read(), PL031::read(), Gicv3::read(), EnergyCtrl::read(), Pl050::read(), Iob::read(), X86ISA::I8042::read(), GpuDispatcher::read(), I2CBus::read(), Gicv3Its::read(), Sp804::read(), A9GlobalTimer::read(), RealViewCtrl::read(), CpuLocalTimer::read(), CopyEngine::read(), VGic::read(), X86ISA::Interrupts::read(), Sinic::Device::read(), GenericPciHost::read(), NSGigE::read(), Pl111::read(), GenericTimerFrame::read(), GicV2::read(), GenericTimerMem::read(), IGbE::read(), UFSHostDevice::read(), IdeController::readConfig(), PciDevice::readConfig(), SMMUv3::readControl(), GicV2::readCpu(), VGic::readCtrl(), GicV2::readDistributor(), AmbaDevice::readId(), Iob::readIob(), Iob::readJBus(), VGic::readVCpu(), Sequencer::recordMissLatency(), GPUCoalescer::recordMissLatency(), StubSlavePort::recvAtomic(), RubyPort::MemSlavePort::recvAtomic(), SMMUv3SlaveInterface::recvAtomic(), SMMUControlPort::recvAtomic(), RubyPort::PioSlavePort::recvAtomic(), AddrMapper::recvAtomic(), DRAMCtrl::recvAtomic(), NoncoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvAtomicBackdoor(), Cache::recvAtomicSnoop(), AtomicSimpleCPU::AtomicCPUDPort::recvAtomicSnoop(), AddrMapper::recvAtomicSnoop(), RubyPort::MemSlavePort::recvFunctional(), NoncoherentXBar::recvFunctional(), MemCheckerMonitor::recvFunctional(), AddrMapper::recvFunctional(), AtomicSimpleCPU::AtomicCPUDPort::recvFunctionalSnoop(), MemCheckerMonitor::recvFunctionalSnoop(), AddrMapper::recvFunctionalSnoop(), X86ISA::Interrupts::recvMessage(), HMCController::recvTimingReq(), RubyPort::MemSlavePort::recvTimingReq(), SMMUv3SlaveInterface::recvTimingReq(), RubyPort::PioSlavePort::recvTimingReq(), NoncoherentXBar::recvTimingReq(), SerialLink::SerialLinkSlavePort::recvTimingReq(), SimpleMemory::recvTimingReq(), Bridge::BridgeSlavePort::recvTimingReq(), DRAMSim2::recvTimingReq(), MemCheckerMonitor::recvTimingReq(), AddrMapper::recvTimingReq(), QoS::MemSinkCtrl::recvTimingReq(), CoherentXBar::recvTimingReq(), DRAMCtrl::recvTimingReq(), RubyDirectedTester::CpuPort::recvTimingResp(), RubyPort::MemMasterPort::recvTimingResp(), RubyPort::PioMasterPort::recvTimingResp(), AbstractController::recvTimingResp(), NoncoherentXBar::recvTimingResp(), TimingSimpleCPU::IcachePort::recvTimingResp(), MemCheckerMonitor::recvTimingResp(), AddrMapper::recvTimingResp(), TimingSimpleCPU::DcachePort::recvTimingResp(), SerialLink::SerialLinkMasterPort::recvTimingResp(), Bridge::BridgeMasterPort::recvTimingResp(), BaseCache::recvTimingResp(), Minor::LSQ::recvTimingResp(), LSQ< Impl >::recvTimingResp(), Cache::recvTimingSnoopReq(), LSQ< Impl >::recvTimingSnoopReq(), Cache::recvTimingSnoopResp(), GPUCoalescer::removeRequest(), RubyPort::ruby_hit_callback(), SMMUv3::runProcessTiming(), BaseCache::satisfyRequest(), PacketQueue::schedSendTiming(), Cache::sendMSHRQueuePacket(), NonCachingSimpleCPU::sendPacket(), ComputeUnit::sendRequest(), SimpleCache::sendResponse(), RiscvISA::Walker::WalkerState::stepWalk(), testAndRead(), testAndReadMask(), testAndWrite(), AtomicSimpleCPU::threadSnoop(), trySatisfyFunctional(), SerialLink::SerialLinkSlavePort::trySendTiming(), Bridge::BridgeSlavePort::trySendTiming(), SerialLink::SerialLinkMasterPort::trySendTiming(), Bridge::BridgeMasterPort::trySendTiming(), DmaPort::trySendTimingReq(), BaseTrafficGen::update(), I2CBus::updateSignals(), GPUCoalescer::wakeup(), SimpleUart::write(), PciVirtIO::write(), MmioVirtIO::write(), X86ISA::I8237::write(), MmDisk::write(), Sp805::write(), NoMaliGpu::write(), Pl011::write(), AmbaFake::write(), X86ISA::Speaker::write(), A9SCU::write(), IsaFake::write(), Uart8250::write(), X86ISA::Cmos::write(), FVPBasePwrCtrl::write(), X86ISA::I8254::write(), X86ISA::I82094AA::write(), HDLcd::write(), X86ISA::I8259::write(), Gicv2m::write(), PL031::write(), Gicv3::write(), EnergyCtrl::write(), Pl050::write(), Iob::write(), GpuDispatcher::write(), X86ISA::I8042::write(), I2CBus::write(), Gicv3Its::write(), Sp804::write(), A9GlobalTimer::write(), RealViewCtrl::write(), CpuLocalTimer::write(), CopyEngine::write(), VGic::write(), X86ISA::Interrupts::write(), Sinic::Device::write(), GenericPciHost::write(), HSAPacketProcessor::write(), NSGigE::write(), Pl111::write(), GenericTimerFrame::write(), GicV2::write(), GenericTimerMem::write(), IGbE::write(), UFSHostDevice::write(), IdeController::writeConfig(), PciDevice::writeConfig(), NSGigE::writeConfig(), IGbE::writeConfig(), SMMUv3::writeControl(), GicV2::writeCpu(), VGic::writeCtrl(), GicV2::writeDistributor(), Iob::writeIob(), Iob::writeJBus(), and VGic::writeVCpu().
AddrRange Packet::getAddrRange | ( | ) | const |
Get address range to which this packet belongs.
Definition at line 225 of file packet.cc.
References getAddr(), getSize(), and RangeSize().
Referenced by PhysicalMemory::access(), AbstractMemory::access(), PhysicalMemory::functionalAccess(), AbstractMemory::functionalAccess(), NoncoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvAtomicBackdoor(), NoncoherentXBar::recvFunctional(), CoherentXBar::recvFunctional(), NoncoherentXBar::recvTimingReq(), CoherentXBar::recvTimingReq(), and CoherentXBar::recvTimingSnoopReq().
|
inline |
Accessor function to atomic op.
Definition at line 758 of file packet.hh.
Referenced by AbstractMemory::access(), GPUCoalescer::issueRequest(), and BaseCache::satisfyRequest().
|
inline |
Get the data in the packet byte swapped from big endian to host endian.
Definition at line 68 of file packet_access.hh.
References betoh().
Referenced by SparcISA::TLB::doMmuRegWrite(), Iob::writeIob(), and Iob::writeJBus().
|
inline |
Definition at line 744 of file packet.hh.
Referenced by SimpleCache::accessFunctional(), SimpleCache::accessTiming(), BaseCache::allocateMissBuffer(), BaseCache::allocateWriteBuffer(), Cache::createMissPacket(), BaseCache::functionalAccess(), BaseCache::getNextQueueEntry(), BaseCache::handleFill(), NoncoherentCache::handleTimingReqMiss(), Cache::handleTimingReqMiss(), BaseCache::handleTimingReqMiss(), SimpleCache::insert(), SnoopFilter::lookupRequest(), SnoopFilter::lookupSnoop(), matchBlockAddr(), Cache::recvTimingSnoopReq(), SnoopFilter::updateResponse(), SnoopFilter::updateSnoopForward(), and SnoopFilter::updateSnoopResponse().
|
inline |
Definition at line 1093 of file packet.hh.
References data, Flags< T >::isSet(), ArmISA::v, and MipsISA::w.
Referenced by BaseCache::access(), SimpleCache::accessTiming(), BaseCache::allocateBlock(), AbstractMemory::checkLockedAddrList(), MemTest::completeRequest(), RubyRequest::functionalWrite(), Minor::Execute::handleMemResponse(), Sequencer::hitCallback(), Check::initiateAction(), SimpleCache::insert(), Prefetcher::Base::PrefetchInfo::PrefetchInfo(), DefaultFetch< Impl >::processCacheCompletion(), StubSlavePort::recvAtomic(), Cache::recvTimingSnoopReq(), Minor::LSQ::SplitDataRequest::retireResponse(), Cache::serviceMSHRTargets(), testAndWrite(), and AtomicSimpleCPU::writeMem().
|
inline |
Get the data in the packet byte swapped from little endian to host endian.
Definition at line 75 of file packet_access.hh.
References letoh().
Referenced by CopyEngine::CopyEngineChannel::channelWrite(), IdeController::dispatchAccess(), X86ISA::getMem(), X86ISA::getPackedMem(), ItsTranslation::main(), Pl011::read(), PL031::read(), Sp804::Timer::read(), A9GlobalTimer::Timer::read(), Pl050::read(), Pl111::read(), IdeController::readConfig(), PciDevice::readConfig(), RiscvISA::Walker::WalkerState::stepWalk(), X86ISA::Walker::WalkerState::stepWalk(), MmioVirtIO::write(), PciVirtIO::write(), X86ISA::I8237::write(), NoMaliGpu::write(), Pl011::write(), X86ISA::Speaker::write(), IsaFake::write(), X86ISA::Cmos::write(), X86ISA::I8254::write(), X86ISA::I82094AA::write(), X86ISA::I8259::write(), HDLcd::write(), Gicv2m::write(), Sp804::Timer::write(), PL031::write(), EnergyCtrl::write(), A9GlobalTimer::Timer::write(), X86ISA::I8042::write(), CpuLocalTimer::Timer::write(), GpuDispatcher::write(), Gicv3Its::write(), RealViewCtrl::write(), CopyEngine::write(), Sinic::Device::write(), HSAPacketProcessor::write(), NSGigE::write(), Pl111::write(), IGbE::write(), UFSHostDevice::write(), IdeController::writeConfig(), PciDevice::writeConfig(), SMMUv3::writeControl(), GicV2::writeCpu(), VGic::writeCtrl(), GicV2::writeDistributor(), and VGic::writeVCpu().
|
inline |
Definition at line 739 of file packet.hh.
Referenced by BaseCache::cmpAndSwap(), Cache::promoteWholeLineWrites(), BaseCache::satisfyRequest(), NoncoherentCache::serviceMSHRTargets(), Cache::serviceMSHRTargets(), and MSHR::TargetList::updateWriteFlags().
|
inline |
get a pointer to the data ptr.
Definition at line 1084 of file packet.hh.
References data, and Flags< T >::isSet().
Referenced by Minor::ForwardLineData::adoptPacketData(), GPUCoalescer::atomicCallback(), IdeController::dispatchAccess(), Minor::LSQ::StoreBuffer::forwardStoreData(), LSQ< Impl >::SplitDataRequest::handleLocalAccess(), GPUCoalescer::hitCallback(), Sequencer::issueRequest(), GPUCoalescer::issueRequest(), DMASequencer::makeRequest(), sc_gem5::packet2payload(), FetchUnit::processFetchReturn(), IsaFake::read(), GpuDispatcher::read(), GenericPciHost::read(), NSGigE::read(), AbstractController::recvTimingResp(), ComputeUnit::DTLBPort::recvTimingResp(), Minor::LSQ::SplitDataRequest::retireResponse(), ComputeUnit::sendRequest(), testAndRead(), testAndReadMask(), trySatisfyFunctional(), and GpuDispatcher::write().
|
inline |
Get the data in the packet without byte swapping.
Definition at line 49 of file packet_access.hh.
References data, DYNAMIC_DATA, flags, Flags< T >::isSet(), size, and STATIC_DATA.
Referenced by I2CBus::isClockSet(), I2CBus::isEnd(), I2CBus::isStart(), X86ISA::Interrupts::recvMessage(), I2CBus::updateSignals(), MmDisk::write(), and Uart8250::write().
|
inline |
Definition at line 730 of file packet.hh.
References Flags< T >::isSet().
Referenced by AbstractMemory::access(), BaseCache::access(), SimpleCache::accessTiming(), DRAMCtrl::addToReadQueue(), DRAMCtrl::addToWriteQueue(), GPUCoalescer::atomicCallback(), SMMUv3SlaveInterface::atsMasterRecvTimingResp(), SMMUv3SlaveInterface::atsSlaveRecvAtomic(), SMMUv3SlaveInterface::atsSlaveRecvTimingReq(), BaseXBar::calcPacketTiming(), AbstractMemory::checkLockedAddrList(), BaseCache::cmpAndSwap(), X86ISA::TLB::demapPage(), IdeController::dispatchAccess(), SMMUProcess::doRead(), ItsProcess::doRead(), ItsProcess::doWrite(), SMMUTranslRequest::fromPacket(), RubyRequest::functionalWrite(), getAddrRange(), getUintX(), BaseCache::handleFill(), Minor::Execute::handleMemResponse(), Cache::handleTimingReqMiss(), BaseCache::handleTimingReqMiss(), Sequencer::hitCallback(), GPUCoalescer::hitCallback(), Sequencer::issueRequest(), GPUCoalescer::issueRequest(), DMASequencer::makeRequest(), SMMUv3::masterRecvReqRetry(), SMMUv3::masterRecvTimingResp(), SMMUv3::masterTableWalkRecvReqRetry(), SMMUv3::masterTableWalkRecvTimingResp(), sc_gem5::packet2payload(), print(), QoS::MemSinkCtrl::processNextReqEvent(), Cache::promoteWholeLineWrites(), MmioVirtIO::read(), PciVirtIO::read(), X86ISA::I8237::read(), MmDisk::read(), Sp805::read(), DumbTOD::read(), NoMaliGpu::read(), Pl011::read(), A9SCU::read(), X86ISA::Speaker::read(), IsaFake::read(), Uart8250::read(), X86ISA::Cmos::read(), FVPBasePwrCtrl::read(), X86ISA::I8254::read(), X86ISA::I82094AA::read(), HDLcd::read(), X86ISA::I8259::read(), PL031::read(), Gicv3::read(), EnergyCtrl::read(), X86ISA::I8042::read(), GpuDispatcher::read(), Sp804::read(), A9GlobalTimer::read(), RealViewCtrl::read(), CpuLocalTimer::read(), CopyEngine::read(), X86ISA::Interrupts::read(), Sinic::Device::read(), GenericPciHost::read(), NSGigE::read(), Pl111::read(), GenericTimerFrame::read(), GenericTimerMem::read(), IGbE::read(), IdeController::readConfig(), PciDevice::readConfig(), VirtIODeviceBase::readConfigBlob(), SMMUv3::readControl(), GicV2::readDistributor(), AmbaDevice::readId(), StubSlavePort::recvAtomic(), RubyPort::MemSlavePort::recvAtomic(), SMMUv3SlaveInterface::recvAtomic(), SMMUControlPort::recvAtomic(), NoncoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvAtomicSnoop(), RubyPort::MemSlavePort::recvFunctional(), MemCheckerMonitor::recvFunctional(), MemCheckerMonitor::recvFunctionalSnoop(), HMCController::recvTimingReq(), RubyPort::MemSlavePort::recvTimingReq(), SMMUv3SlaveInterface::recvTimingReq(), NoncoherentXBar::recvTimingReq(), SerialLink::SerialLinkSlavePort::recvTimingReq(), SimpleMemory::recvTimingReq(), MemCheckerMonitor::recvTimingReq(), QoS::MemSinkCtrl::recvTimingReq(), CoherentXBar::recvTimingReq(), DRAMCtrl::recvTimingReq(), NoncoherentXBar::recvTimingResp(), MemCheckerMonitor::recvTimingResp(), SerialLink::SerialLinkMasterPort::recvTimingResp(), CoherentXBar::recvTimingResp(), CoherentXBar::recvTimingSnoopReq(), CoherentXBar::recvTimingSnoopResp(), Minor::LSQ::SplitDataRequest::retireResponse(), SMMUv3::runProcessTiming(), Cache::satisfyRequest(), BaseCache::satisfyRequest(), PacketQueue::schedSendTiming(), QoS::Policy::schedule(), QoS::MemCtrl::schedule(), BaseCache::sendMSHRQueuePacket(), ComputeUnit::sendRequest(), Cache::serviceMSHRTargets(), setUintX(), RiscvISA::Walker::WalkerState::stepWalk(), X86ISA::Walker::WalkerState::stepWalk(), testAndRead(), testAndReadMask(), testAndWrite(), trySatisfyFunctional(), SerialLink::SerialLinkSlavePort::trySendTiming(), SerialLink::SerialLinkMasterPort::trySendTiming(), MSHR::TargetList::updateWriteFlags(), MmioVirtIO::write(), PciVirtIO::write(), X86ISA::I8237::write(), MmDisk::write(), Sp805::write(), NoMaliGpu::write(), Pl011::write(), X86ISA::Speaker::write(), IsaFake::write(), Uart8250::write(), X86ISA::Cmos::write(), FVPBasePwrCtrl::write(), X86ISA::I8254::write(), X86ISA::I82094AA::write(), HDLcd::write(), X86ISA::I8259::write(), PL031::write(), Gicv3::write(), EnergyCtrl::write(), Pl050::write(), GpuDispatcher::write(), X86ISA::I8042::write(), Gicv3Its::write(), Sp804::write(), A9GlobalTimer::write(), CpuLocalTimer::write(), CopyEngine::write(), X86ISA::Interrupts::write(), Sinic::Device::write(), GenericPciHost::write(), HSAPacketProcessor::write(), NSGigE::write(), Pl111::write(), GenericTimerFrame::write(), GenericTimerMem::write(), IGbE::write(), UFSHostDevice::write(), IdeController::writeConfig(), PciDevice::writeConfig(), VirtIODeviceBase::writeConfigBlob(), SMMUv3::writeControl(), and GicV2::writeDistributor().
uint64_t Packet::getUintX | ( | ByteOrder | endian | ) | const |
Get the data in the packet byte swapped from the specified endianness and zero-extended to 64 bits.
Definition at line 334 of file packet.cc.
References getSize(), and panic.
Referenced by AbstractMemory::checkLockedAddrList(), Sp805::read(), SimpleUart::write(), Sp805::write(), FVPBasePwrCtrl::write(), Gicv3::write(), Pl050::write(), GenericTimerFrame::write(), and GenericTimerMem::write().
|
inline |
Definition at line 542 of file packet.hh.
References MemCmd::hasData().
Referenced by BaseCache::allocateBlock(), BaseXBar::calcPacketTiming(), BaseCache::handleFill(), Cache::handleSnoop(), DRAMCtrl::recvAtomic(), NoncoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvAtomicSnoop(), HMCController::recvTimingReq(), NoncoherentXBar::recvTimingReq(), CoherentXBar::recvTimingReq(), NoncoherentXBar::recvTimingResp(), CoherentXBar::recvTimingResp(), CoherentXBar::recvTimingSnoopReq(), CoherentXBar::recvTimingSnoopResp(), replaceUpgrade(), Cache::serviceMSHRTargets(), and trySatisfyFunctional().
|
inline |
Definition at line 543 of file packet.hh.
References MemCmd::hasData(), and MemCmd::responseCommand().
Referenced by replaceUpgrade(), BaseCache::satisfyRequest(), and Cache::serviceMSHRTargets().
|
inline |
Definition at line 612 of file packet.hh.
References Flags< T >::isSet().
Referenced by BaseCache::access(), Cache::createMissPacket(), NoncoherentCache::handleAtomicReqMiss(), BaseCache::handleFill(), Cache::handleSnoop(), NoncoherentCache::recvTimingResp(), DefaultFetch< Impl >::IcachePort::recvTimingResp(), DmaPort::recvTimingResp(), Cache::satisfyRequest(), BaseCache::satisfyRequest(), BaseCache::sendMSHRQueuePacket(), SnoopFilter::updateSnoopForward(), and SnoopFilter::updateSnoopResponse().
|
inline |
Definition at line 759 of file packet.hh.
Referenced by AbstractMemory::access(), GPUCoalescer::issueRequest(), GPUCoalescer::makeRequest(), and BaseCache::satisfyRequest().
|
inline |
Definition at line 686 of file packet.hh.
References Flags< T >::isSet().
Referenced by Cache::handleSnoop(), Cache::isCachedAbove(), SnoopFilter::lookupRequest(), and CoherentXBar::sinkPacket().
|
inline |
Definition at line 539 of file packet.hh.
References MemCmd::isClean().
Referenced by AbstractMemory::access(), Cache::createMissPacket(), CoherentXBar::forwardPacket(), Cache::handleSnoop(), MSHR::handleSnoop(), MSHR::isCleaning(), BaseCache::recvAtomic(), CoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvTimingReq(), BaseCache::recvTimingResp(), BaseCache::satisfyRequest(), and BaseCache::sendMSHRQueuePacket().
|
inline |
Is this packet a clean eviction, including both actual clean evict packets, but also clean writebacks.
Definition at line 1294 of file packet.hh.
References MemCmd::CleanEvict, and MemCmd::WritebackClean.
Referenced by BaseCache::access(), and CoherentXBar::sinkPacket().
|
inline |
Definition at line 549 of file packet.hh.
References MemCmd::isError().
Referenced by AtomicSimpleCPU::amoMem(), TimingSimpleCPU::completeDataAccess(), TimingSimpleCPU::completeIfetch(), MemTest::completeRequest(), copyError(), NoncoherentCache::handleAtomicReqMiss(), Cache::handleAtomicReqMiss(), Minor::Execute::handleMemResponse(), Minor::Fetch1::minorTraceResponseLine(), ArmISA::Stage2MMU::readDataUntimed(), AtomicSimpleCPU::readMem(), PioPort< X86ISA::Interrupts >::recvAtomic(), Minor::Fetch1::recvTimingResp(), BaseCache::recvTimingResp(), Minor::LSQ::recvTimingResp(), LSQ< Impl >::recvTimingResp(), Minor::LSQ::SplitDataRequest::retireResponse(), NoncoherentCache::serviceMSHRTargets(), Cache::serviceMSHRTargets(), AtomicSimpleCPU::tick(), and AtomicSimpleCPU::writeMem().
|
inline |
Definition at line 538 of file packet.hh.
References MemCmd::isEviction().
Referenced by BaseCache::access(), WriteQueueEntry::allocate(), Cache::createMissPacket(), Cache::handleAtomicReqMiss(), BaseCache::handleTimingReqMiss(), Cache::isCachedAbove(), SnoopFilter::lookupRequest(), CoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvTimingReq(), and Cache::recvTimingSnoopReq().
|
inline |
Definition at line 628 of file packet.hh.
References Flags< T >::isSet().
Referenced by MSHR::handleSnoop(), print(), HMCController::recvTimingReq(), NoncoherentXBar::recvTimingReq(), CoherentXBar::recvTimingReq(), CoherentXBar::recvTimingSnoopReq(), CoherentXBar::recvTimingSnoopResp(), PacketQueue::schedSendTiming(), and BaseCache::CpuSidePort::tryTiming().
|
inline |
Definition at line 551 of file packet.hh.
References MemCmd::isFlush().
Referenced by RubyPort::MemSlavePort::hitCallback(), Sequencer::hitCallback(), Sequencer::issueRequest(), Sequencer::makeRequest(), and GPUCoalescer::makeRequest().
|
inline |
Definition at line 537 of file packet.hh.
References MemCmd::isInvalidate().
Referenced by AbstractMemory::access(), LSQUnit< Impl >::checkSnoop(), Cache::doTimingSupplyResponse(), NoncoherentCache::handleAtomicReqMiss(), Cache::handleAtomicReqMiss(), ArmISA::handleLockedSnoop(), Cache::handleSnoop(), MSHR::handleSnoop(), SnoopFilter::lookupSnoop(), Prefetcher::Base::observeAccess(), AtomicSimpleCPU::AtomicCPUDPort::recvAtomicSnoop(), AtomicSimpleCPU::AtomicCPUDPort::recvFunctionalSnoop(), NoncoherentCache::recvTimingResp(), BaseCache::recvTimingResp(), LSQ< Impl >::recvTimingResp(), Cache::recvTimingSnoopReq(), TimingSimpleCPU::DcachePort::recvTimingSnoopReq(), Minor::LSQ::recvTimingSnoopReq(), LSQ< Impl >::recvTimingSnoopReq(), BaseCache::satisfyRequest(), Cache::serviceMSHRTargets(), Minor::LSQ::threadSnoop(), and SnoopFilter::updateResponse().
|
inline |
Definition at line 548 of file packet.hh.
References MemCmd::isLLSC().
Referenced by AbstractMemory::access(), BaseCache::access(), AbstractMemory::checkLockedAddrList(), CacheBlk::checkWrite(), Cache::createMissPacket(), RubyPort::MemSlavePort::hitCallback(), Sequencer::makeRequest(), GPUCoalescer::makeRequest(), MemCheckerMonitor::recvTimingResp(), BaseCache::satisfyRequest(), CacheBlk::trackLoadLocked(), and AbstractMemory::writeOK().
|
inline |
Definition at line 1300 of file packet.hh.
References X86ISA::base, and MemCmd::WriteReq.
Referenced by Cache::promoteWholeLineWrites(), and trySatisfyFunctional().
|
inline |
Definition at line 550 of file packet.hh.
References MemCmd::isPrint().
Referenced by AbstractMemory::functionalAccess(), NoncoherentXBar::recvFunctional(), CoherentXBar::recvFunctional(), CoherentXBar::recvFunctionalSnoop(), WriteQueueEntry::trySatisfyFunctional(), MSHR::trySatisfyFunctional(), and trySatisfyFunctional().
|
inline |
Definition at line 522 of file packet.hh.
References MemCmd::isRead().
Referenced by AbstractMemory::access(), BaseCache::access(), SimpleCache::accessFunctional(), SimpleCache::accessTiming(), MemTest::completeRequest(), SimpleMemDelay::delayReq(), SimpleMemDelay::delayResp(), Cache::doTimingSupplyResponse(), CoherentXBar::forwardPacket(), AbstractMemory::functionalAccess(), NoncoherentCache::handleAtomicReqMiss(), Cache::handleAtomicReqMiss(), BaseCache::handleFill(), TimingSimpleCPU::handleReadPacket(), Cache::handleSnoop(), Cache::handleTimingReqMiss(), Sequencer::makeRequest(), GPUCoalescer::makeRequest(), Prefetcher::Base::observeAccess(), sc_gem5::packet2payload(), ComputeUnit::DataPort::processMemRespEvent(), QoS::MemSinkCtrl::processNextReqEvent(), PioPort< X86ISA::Interrupts >::recvAtomic(), NoncoherentCache::recvAtomic(), SMMUControlPort::recvAtomic(), RubyPort::MemSlavePort::recvFunctional(), RiscvISA::Walker::WalkerState::recvPacket(), X86ISA::Walker::WalkerState::recvPacket(), TimingSimpleCPU::DcachePort::recvReqRetry(), NoncoherentCache::recvTimingReq(), SimpleMemory::recvTimingReq(), DRAMSim2::recvTimingReq(), MemCheckerMonitor::recvTimingReq(), QoS::MemSinkCtrl::recvTimingReq(), CommMonitor::recvTimingReq(), DRAMCtrl::recvTimingReq(), NoncoherentCache::recvTimingResp(), AbstractController::recvTimingResp(), MemCheckerMonitor::recvTimingResp(), CommMonitor::recvTimingResp(), BaseCache::recvTimingResp(), Cache::recvTimingSnoopReq(), Minor::LSQ::SplitDataRequest::retireResponse(), NoncoherentCache::satisfyRequest(), Cache::satisfyRequest(), BaseCache::satisfyRequest(), ComputeUnit::sendRequest(), Cache::serviceMSHRTargets(), CoherentXBar::sinkPacket(), and trySatisfyFunctional().
|
inline |
Definition at line 525 of file packet.hh.
References MemCmd::isRequest().
Referenced by Cache::access(), PhysicalMemory::access(), BaseCache::access(), BaseCache::cmpAndSwap(), copyResponderFlags(), Cache::doTimingSupplyResponse(), PhysicalMemory::functionalAccess(), Cache::handleSnoop(), X86ISA::GpuTLB::handleTranslationReturn(), SnoopFilter::lookupSnoop(), MemCheckerMonitor::recvTimingReq(), CommMonitor::recvTimingReq(), BaseCache::CpuSidePort::recvTimingReq(), RubyPort::ruby_hit_callback(), BaseCache::satisfyRequest(), FunctionalRequestProtocol::send(), AtomicRequestProtocol::send(), AtomicRequestProtocol::sendBackdoor(), TimingRequestProtocol::sendReq(), FunctionalResponseProtocol::sendSnoop(), AtomicResponseProtocol::sendSnoop(), TimingResponseProtocol::sendSnoopReq(), TimingRequestProtocol::trySend(), and TLBCoalescer::updatePhysAddresses().
|
inline |
Definition at line 526 of file packet.hh.
References MemCmd::isResponse().
Referenced by DRAMSim2::accessAndRespond(), DRAMCtrl::accessAndRespond(), sc_gem5::TlmToGem5Bridge< BITWIDTH >::b_transport(), GarnetSyntheticTraffic::completeRequest(), CoherentXBar::forwardAtomic(), CoherentXBar::forwardFunctional(), NoncoherentCache::handleAtomicReqMiss(), Cache::handleAtomicReqMiss(), BaseCache::handleFill(), DmaPort::handleResp(), Cache::handleSnoop(), SimpleCache::insert(), PioPort< X86ISA::Interrupts >::recvAtomic(), CommMonitor::recvAtomic(), NoncoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvAtomicSnoop(), RubyPort::MemSlavePort::recvFunctional(), CoherentXBar::recvFunctional(), RiscvISA::Walker::WalkerState::recvPacket(), X86ISA::Walker::WalkerState::recvPacket(), SimpleTimingPort::recvTimingReq(), SimpleMemory::recvTimingReq(), RubyPort::MemMasterPort::recvTimingResp(), NoncoherentCache::recvTimingResp(), X86ISA::IntMasterPort< X86ISA::I82094AA >::recvTimingResp(), AbstractController::recvTimingResp(), sc_gem5::TlmToGem5Bridge< BITWIDTH >::recvTimingResp(), MemCheckerMonitor::recvTimingResp(), CommMonitor::recvTimingResp(), BaseCache::recvTimingResp(), BaseCache::CpuSidePort::recvTimingSnoopResp(), TimingResponseProtocol::sendResp(), TimingRequestProtocol::sendSnoopResp(), SnoopFilter::updateResponse(), SnoopFilter::updateSnoopForward(), and SnoopFilter::updateSnoopResponse().
|
inline |
Definition at line 749 of file packet.hh.
References Flags< T >::isSet().
Referenced by Cache::access(), BaseCache::access(), WriteQueueEntry::allocate(), MSHR::allocate(), BaseCache::allocateBlock(), BaseCache::allocateWriteBuffer(), BaseCache::functionalAccess(), BaseCache::getNextQueueEntry(), BaseCache::handleFill(), NoncoherentCache::handleTimingReqMiss(), Cache::handleTimingReqMiss(), BaseTags::insertBlock(), SnoopFilter::lookupRequest(), SnoopFilter::lookupSnoop(), matchAddr(), matchBlockAddr(), Prefetcher::Base::probeNotify(), Gicv3::read(), GenericTimerFrame::read(), GenericTimerMem::read(), CoherentXBar::recvAtomicBackdoor(), Cache::recvAtomicSnoop(), CoherentXBar::recvTimingReq(), BaseCache::recvTimingResp(), Cache::recvTimingSnoopReq(), Cache::recvTimingSnoopResp(), Cache::sendMSHRQueuePacket(), trySatisfyFunctional(), SnoopFilter::updateResponse(), SnoopFilter::updateSnoopForward(), SnoopFilter::updateSnoopResponse(), Gicv3::write(), GenericTimerFrame::write(), and GenericTimerMem::write().
|
inline |
Definition at line 524 of file packet.hh.
References MemCmd::isUpgrade().
Referenced by Cache::createMissPacket(), BaseCache::satisfyRequest(), and MSHR::TargetList::updateFlags().
|
inline |
Definition at line 553 of file packet.hh.
References getOffset(), MemCmd::WriteLineReq, and MemCmd::WriteReq.
Referenced by NoncoherentCache::handleAtomicReqMiss(), and Cache::handleAtomicReqMiss().
|
inline |
Definition at line 523 of file packet.hh.
References MemCmd::isWrite().
Referenced by Cache::access(), AbstractMemory::access(), BaseCache::access(), SimpleCache::accessFunctional(), SimpleCache::accessTiming(), DRAMCtrl::addToReadQueue(), DRAMCtrl::addToWriteQueue(), WriteQueueEntry::allocate(), BaseCache::allocateWriteBuffer(), CacheBlk::checkWrite(), TraceCPU::ElasticDataGen::completeMemAccess(), GarnetSyntheticTraffic::completeRequest(), MemTest::completeRequest(), SimpleMemDelay::delayReq(), SimpleMemDelay::delayResp(), CoherentXBar::forwardPacket(), SMMUTranslRequest::fromPacket(), AbstractMemory::functionalAccess(), SequencerRequest::functionalWrite(), Cache::handleAtomicReqMiss(), ArmISA::handleLockedSnoop(), Cache::handleTimingReqMiss(), BaseCache::handleTimingReqMiss(), RubyPort::MemSlavePort::hitCallback(), GPUCoalescer::issueRequest(), DMASequencer::makeRequest(), Sequencer::makeRequest(), GPUCoalescer::makeRequest(), sc_gem5::packet2payload(), Prefetcher::Base::probeNotify(), ComputeUnit::DataPort::processMemRespEvent(), NoncoherentCache::recvAtomic(), CoherentXBar::recvAtomicBackdoor(), AtomicSimpleCPU::AtomicCPUDPort::recvAtomicSnoop(), RubyPort::MemSlavePort::recvFunctional(), TimingSimpleCPU::DcachePort::recvReqRetry(), NoncoherentCache::recvTimingReq(), SMMUv3SlaveInterface::recvTimingReq(), SimpleMemory::recvTimingReq(), DRAMSim2::recvTimingReq(), MemCheckerMonitor::recvTimingReq(), QoS::MemSinkCtrl::recvTimingReq(), CommMonitor::recvTimingReq(), CoherentXBar::recvTimingReq(), DRAMCtrl::recvTimingReq(), BaseTrafficGen::recvTimingResp(), AbstractController::recvTimingResp(), MemCheckerMonitor::recvTimingResp(), CommMonitor::recvTimingResp(), BaseCache::recvTimingResp(), TimingSimpleCPU::DcachePort::recvTimingSnoopReq(), Minor::LSQ::recvTimingSnoopReq(), Minor::LSQ::SplitDataRequest::retireResponse(), NoncoherentCache::satisfyRequest(), BaseCache::satisfyRequest(), BaseCache::sendMSHRQueuePacket(), ComputeUnit::sendRequest(), CoherentXBar::sinkPacket(), Minor::LSQ::threadSnoop(), trySatisfyFunctional(), and MSHR::TargetList::updateWriteFlags().
|
inline |
Definition at line 541 of file packet.hh.
References MemCmd::isWriteback().
Referenced by NoncoherentCache::access(), BaseCache::access(), NoncoherentCache::handleAtomicReqMiss(), BaseCache::handleTimingReqMiss(), SnoopFilter::lookupSnoop(), and SnoopFilter::updateSnoopResponse().
|
inline |
Definition at line 943 of file packet.hh.
Referenced by SMMUTranslationProcess::completeTransaction(), IdeController::dispatchAccess(), SparcISA::TLB::doMmuRegRead(), SparcISA::TLB::doMmuRegWrite(), NoncoherentCache::handleAtomicReqMiss(), Cache::handleAtomicReqMiss(), Cache::handleSnoop(), SimpleUart::read(), X86ISA::I8237::read(), MmDisk::read(), DumbTOD::read(), Pl011::read(), AmbaFake::read(), A9SCU::read(), X86ISA::Speaker::read(), IsaFake::read(), Uart8250::read(), X86ISA::Cmos::read(), X86ISA::I8254::read(), X86ISA::I82094AA::read(), X86ISA::I8259::read(), HDLcd::read(), Gicv2m::read(), PL031::read(), Gicv3::read(), EnergyCtrl::read(), Pl050::read(), Iob::read(), X86ISA::I8042::read(), GpuDispatcher::read(), I2CBus::read(), Gicv3Its::read(), Sp804::read(), A9GlobalTimer::read(), RealViewCtrl::read(), CpuLocalTimer::read(), CopyEngine::read(), X86ISA::Interrupts::read(), GenericPciHost::read(), HSAPacketProcessor::read(), NSGigE::read(), Pl111::read(), IGbE::read(), IdeController::readConfig(), PciDevice::readConfig(), SMMUv3::readControl(), GicV2::readCpu(), VGic::readCtrl(), GicV2::readDistributor(), VGic::readVCpu(), BaseCache::recvAtomic(), X86ISA::Interrupts::recvMessage(), SimpleUart::write(), X86ISA::I8237::write(), MmDisk::write(), NoMaliGpu::write(), Pl011::write(), AmbaFake::write(), X86ISA::Speaker::write(), A9SCU::write(), IsaFake::write(), Uart8250::write(), X86ISA::Cmos::write(), X86ISA::I8254::write(), X86ISA::I82094AA::write(), X86ISA::I8259::write(), HDLcd::write(), Gicv2m::write(), PL031::write(), Gicv3::write(), EnergyCtrl::write(), Pl050::write(), Iob::write(), GpuDispatcher::write(), X86ISA::I8042::write(), Gicv3Its::write(), Sp804::write(), A9GlobalTimer::write(), RealViewCtrl::write(), CpuLocalTimer::write(), CopyEngine::write(), X86ISA::Interrupts::write(), HSAPacketProcessor::write(), NSGigE::write(), Pl111::write(), IGbE::write(), IdeController::writeConfig(), PciDevice::writeConfig(), SMMUv3::writeControl(), GicV2::writeCpu(), VGic::writeCtrl(), GicV2::writeDistributor(), and VGic::writeVCpu().
|
inlinestatic |
Generate the appropriate read MemCmd based on the Request flags.
Definition at line 871 of file packet.hh.
References MemCmd::LoadLockedReq, MemCmd::ReadReq, MemCmd::SoftPFExReq, and MemCmd::SoftPFReq.
Referenced by AtomicSimpleCPU::readMem().
|
inline |
Take a request packet and modify it in place to be suitable for returning as a response to that request.
Definition at line 931 of file packet.hh.
References Flags< T >::clear(), MemCmd::isRequest(), MemCmd::needsResponse(), and MemCmd::responseCommand().
Referenced by AbstractMemory::access(), SimpleCache::accessTiming(), AbstractMemory::functionalAccess(), BaseCache::functionalAccess(), SimpleCache::handleFunctional(), SimpleCache::handleResponse(), RubyPort::MemSlavePort::hitCallback(), StubSlavePort::processResponseEvent(), MmioVirtIO::read(), PciVirtIO::read(), Sp805::read(), NoMaliGpu::read(), FVPBasePwrCtrl::read(), GenericTimerFrame::read(), GenericTimerMem::read(), UFSHostDevice::read(), VirtIODeviceBase::readConfigBlob(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::recvAtomic(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::recvAtomicBackdoor(), CoherentXBar::recvAtomicBackdoor(), RubyPort::MemSlavePort::recvFunctional(), MemDelay::SlavePort::recvFunctional(), NoncoherentXBar::recvFunctional(), SerialLink::SerialLinkSlavePort::recvFunctional(), Bridge::BridgeSlavePort::recvFunctional(), CoherentXBar::recvFunctional(), MemDelay::MasterPort::recvFunctionalSnoop(), CoherentXBar::recvFunctionalSnoop(), RubyPort::MemSlavePort::recvTimingReq(), CoherentXBar::recvTimingReq(), Minor::LSQ::SplitDataRequest::retireResponse(), TimingSimpleCPU::sendData(), TimingSimpleCPU::sendSplitData(), SerialLink::SerialLinkMasterPort::trySatisfyFunctional(), Bridge::BridgeMasterPort::trySatisfyFunctional(), Minor::LSQ::tryToSendToTransfers(), PciVirtIO::write(), MmioVirtIO::write(), Sp805::write(), FVPBasePwrCtrl::write(), GenericTimerFrame::write(), GenericTimerMem::write(), UFSHostDevice::write(), and VirtIODeviceBase::writeConfigBlob().
|
inline |
Definition at line 949 of file packet.hh.
Referenced by SMMUTranslationProcess::completeTransaction(), BaseCache::handleTimingReqHit(), Cache::handleTimingReqMiss(), X86ISA::GpuTLB::handleTranslationReturn(), LdsState::process(), NoncoherentCache::serviceMSHRTargets(), Cache::serviceMSHRTargets(), and TLBCoalescer::updatePhysAddresses().
|
inlinestatic |
Generate the appropriate write MemCmd based on the Request flags.
Definition at line 887 of file packet.hh.
References MemCmd::CleanInvalidReq, MemCmd::CleanSharedReq, MemCmd::InvalidateReq, MemCmd::StoreCondReq, MemCmd::SwapReq, and MemCmd::WriteReq.
Referenced by AtomicSimpleCPU::amoMem(), and AtomicSimpleCPU::writeMem().
|
inline |
Definition at line 706 of file packet.hh.
Referenced by DRAMCtrl::addToReadQueue(), DRAMCtrl::addToWriteQueue(), QoS::LrgQueuePolicy::enqueuePacket(), and QoS::MemCtrl::qosSchedule().
bool Packet::matchAddr | ( | const Addr | addr, |
const bool | is_secure | ||
) | const |
Check if packet corresponds to a given address and address space.
addr | The address to compare against. |
is_secure | Whether addr belongs to the secure address space. |
Definition at line 408 of file packet.cc.
References getAddr(), and isSecure().
Referenced by matchAddr(), and Cache::serviceMSHRTargets().
bool Packet::matchAddr | ( | const PacketPtr | pkt | ) | const |
Check if this packet refers to the same address and address space as another packet.
pkt | The packet to compare against. |
Definition at line 414 of file packet.cc.
References getAddr(), isSecure(), and matchAddr().
bool Packet::matchBlockAddr | ( | const Addr | addr, |
const bool | is_secure, | ||
const int | blk_size | ||
) | const |
Check if packet corresponds to a given block-aligned address and address space.
addr | The address to compare against. |
is_secure | Whether addr belongs to the secure address space. |
blk_size | Block size in bytes. |
Definition at line 394 of file packet.cc.
References getBlockAddr(), and isSecure().
Referenced by WriteQueueEntry::allocate(), MSHR::allocate(), WriteQueueEntry::matchBlockAddr(), MSHR::matchBlockAddr(), and matchBlockAddr().
bool Packet::matchBlockAddr | ( | const PacketPtr | pkt, |
const int | blk_size | ||
) | const |
Check if this packet refers to the same block-aligned address and address space as another packet.
pkt | The packet to compare against. |
blk_size | Block size in bytes. |
Definition at line 401 of file packet.cc.
References getBlockAddr(), isSecure(), and matchBlockAddr().
|
inline |
Does the request need to check for cached copies of the same block in the memory hierarchy above.
Definition at line 1284 of file packet.hh.
References MemCmd::HardPFReq, and MemCmd::isEviction().
Referenced by Cache::handleSnoop(), and Cache::recvTimingSnoopReq().
|
inline |
Definition at line 536 of file packet.hh.
References MemCmd::needsResponse().
Referenced by AbstractMemory::access(), BaseCache::access(), DRAMSim2::accessAndRespond(), DRAMCtrl::accessAndRespond(), SimpleCache::accessTiming(), BaseTrafficGen::allocateWaitingRespSlot(), sc_gem5::TlmToGem5Bridge< BITWIDTH >::b_transport(), NoncoherentCache::createMissPacket(), Cache::createMissPacket(), Cache::doTimingSupplyResponse(), NoncoherentCache::handleAtomicReqMiss(), Cache::handleAtomicReqMiss(), Cache::handleSnoop(), MSHR::handleSnoop(), BaseCache::handleTimingReqHit(), Cache::handleTimingReqMiss(), RubyPort::MemSlavePort::hitCallback(), SnoopFilter::lookupRequest(), QoS::MemSinkCtrl::processNextReqEvent(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::recvAtomic(), CommMonitor::recvAtomic(), BaseCache::recvAtomic(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::recvAtomicBackdoor(), CoherentXBar::recvAtomicBackdoor(), RubyPort::MemSlavePort::recvFunctional(), NoncoherentXBar::recvFunctional(), CoherentXBar::recvFunctional(), CoherentXBar::recvFunctionalSnoop(), SimpleTimingPort::recvTimingReq(), HMCController::recvTimingReq(), NoncoherentXBar::recvTimingReq(), SerialLink::SerialLinkSlavePort::recvTimingReq(), SimpleMemory::recvTimingReq(), Bridge::BridgeSlavePort::recvTimingReq(), MemCheckerMonitor::recvTimingReq(), AddrMapper::recvTimingReq(), CommMonitor::recvTimingReq(), CoherentXBar::recvTimingReq(), Cache::recvTimingSnoopReq(), Minor::LSQ::SplitDataRequest::retireResponse(), CoherentXBar::sinkPacket(), and Minor::Fetch1::tryToSendToTransfers().
|
inline |
Definition at line 527 of file packet.hh.
References MemCmd::isRequest(), and MemCmd::needsWritable().
Referenced by BaseCache::access(), MSHR::allocateTarget(), Cache::handleAtomicReqMiss(), Cache::handleSnoop(), MSHR::handleSnoop(), BaseCache::handleTimingReqMiss(), SnoopFilter::lookupSnoop(), Cache::recvAtomic(), Cache::recvTimingReq(), Cache::recvTimingSnoopReq(), Cache::satisfyRequest(), Cache::serviceMSHRTargets(), CoherentXBar::sinkPacket(), and MSHR::TargetList::updateFlags().
|
inline |
Pop label for PrintReq (safe to call unconditionally).
Definition at line 1330 of file packet.hh.
References MemCmd::isPrint(), and safe_cast().
Referenced by BaseCache::functionalAccess(), QoS::MemSinkCtrl::MemoryPort::recvFunctional(), DRAMCtrl::MemoryPort::recvFunctional(), SimpleMemory::recvFunctional(), SerialLink::SerialLinkSlavePort::recvFunctional(), DRAMSim2::recvFunctional(), Bridge::BridgeSlavePort::recvFunctional(), QoS::MemSinkCtrl::recvFunctional(), Queue< WriteQueueEntry >::trySatisfyFunctional(), and PacketQueue::trySatisfyFunctional().
Packet::SenderState * Packet::popSenderState | ( | ) |
Pop the top of the state stack and return a pointer to it.
This assumes the current sender state is not NULL. This should be preferred over direct manipulation of the senderState member variable.
Definition at line 324 of file packet.cc.
References Packet::SenderState::predecessor, and senderState.
Referenced by SMMUv3SlaveInterface::atsMasterRecvTimingResp(), SMMUv3::masterRecvTimingResp(), SMMUv3::masterTableWalkRecvTimingResp(), MemCheckerMonitor::recvTimingReq(), AddrMapper::recvTimingReq(), CommMonitor::recvTimingReq(), RubyPort::MemMasterPort::recvTimingResp(), Gicv3Its::recvTimingResp(), X86ISA::IntMasterPort< X86ISA::I82094AA >::recvTimingResp(), sc_gem5::TlmToGem5Bridge< BITWIDTH >::recvTimingResp(), RiscvISA::Walker::recvTimingResp(), X86ISA::Walker::recvTimingResp(), Minor::Fetch1::recvTimingResp(), BaseCache::recvTimingResp(), Minor::LSQ::recvTimingResp(), RubyPort::ruby_hit_callback(), RiscvISA::Walker::sendTiming(), and X86ISA::Walker::sendTiming().
|
virtual |
Implements Printable.
Definition at line 373 of file packet.cc.
References ccprintf(), cmdString(), getAddr(), getSize(), isExpressSnoop(), and req.
Referenced by Cache::access(), AbstractMemory::access(), BaseCache::access(), SimpleCache::accessTiming(), BaseCache::allocateWriteBuffer(), Cache::cleanEvictBlk(), NoncoherentCache::createMissPacket(), Cache::createMissPacket(), Cache::doTimingSupplyResponse(), CoherentXBar::forwardTiming(), BaseCache::functionalAccess(), NoncoherentCache::handleAtomicReqMiss(), Cache::handleAtomicReqMiss(), Cache::handleSnoop(), MSHR::handleSnoop(), BaseCache::handleTimingReqHit(), BaseCache::handleTimingReqMiss(), SimpleCache::insert(), SnoopFilter::lookupRequest(), SnoopFilter::lookupSnoop(), Cache::recvAtomic(), BaseCache::recvAtomic(), CoherentXBar::recvAtomicBackdoor(), NoncoherentCache::recvAtomicSnoop(), CoherentXBar::recvAtomicSnoop(), CoherentXBar::recvFunctional(), CoherentXBar::recvFunctionalSnoop(), SimpleCache::CPUSidePort::recvRespRetry(), Cache::recvTimingReq(), SimpleCache::CPUSidePort::recvTimingReq(), CoherentXBar::recvTimingReq(), BaseTrafficGen::recvTimingResp(), CoherentXBar::recvTimingResp(), BaseCache::recvTimingResp(), NoncoherentCache::recvTimingSnoopReq(), Cache::recvTimingSnoopReq(), CoherentXBar::recvTimingSnoopReq(), NoncoherentCache::recvTimingSnoopResp(), Cache::recvTimingSnoopResp(), CoherentXBar::recvTimingSnoopResp(), BaseCache::satisfyRequest(), Cache::sendMSHRQueuePacket(), BaseCache::sendMSHRQueuePacket(), SimpleCache::CPUSidePort::sendPacket(), BaseCache::sendWriteQueuePacket(), Cache::serviceMSHRTargets(), SnoopFilter::updateResponse(), SnoopFilter::updateSnoopForward(), SnoopFilter::updateSnoopResponse(), BaseCache::writebackBlk(), and BaseCache::writecleanBlk().
std::string Packet::print | ( | ) | const |
|
inline |
Push label for PrintReq (safe to call unconditionally).
Definition at line 1320 of file packet.hh.
References MemCmd::isPrint(), and safe_cast().
Referenced by BaseCache::functionalAccess(), QoS::MemSinkCtrl::MemoryPort::recvFunctional(), DRAMCtrl::MemoryPort::recvFunctional(), SimpleMemory::recvFunctional(), SerialLink::SerialLinkSlavePort::recvFunctional(), DRAMSim2::recvFunctional(), Bridge::BridgeSlavePort::recvFunctional(), QoS::MemSinkCtrl::recvFunctional(), Queue< WriteQueueEntry >::trySatisfyFunctional(), and PacketQueue::trySatisfyFunctional().
void Packet::pushSenderState | ( | Packet::SenderState * | sender_state | ) |
Push a new sender state to the packet and make the current sender state the predecessor of the new one.
This should be prefered over direct manipulation of the senderState member variable.
sender_state | SenderState to push at the top of the stack |
Definition at line 316 of file packet.cc.
References Packet::SenderState::predecessor, and senderState.
Referenced by sc_gem5::TlmToGem5Bridge< BITWIDTH >::handleBeginReq(), Minor::makePacketForRequest(), RubyPort::MemSlavePort::recvAtomic(), RubyPort::MemSlavePort::recvTimingReq(), MemCheckerMonitor::recvTimingReq(), AddrMapper::recvTimingReq(), CommMonitor::recvTimingReq(), SMMUv3::runProcessTiming(), Gicv3Its::runProcessTiming(), X86ISA::IntMasterPort< X86ISA::I82094AA >::sendMessage(), BaseCache::sendMSHRQueuePacket(), RiscvISA::Walker::sendTiming(), and X86ISA::Walker::sendTiming().
|
inline |
QoS Value getter Returns 0 if QoS value was never set (constructor default).
Definition at line 695 of file packet.hh.
Referenced by DRAMCtrl::addToReadQueue(), DRAMCtrl::addToWriteQueue(), QoS::MemSinkCtrl::processNextReqEvent(), QoS::MemCtrl::qosSchedule(), QoS::MemSinkCtrl::recvTimingReq(), and QoS::MemCtrl::schedule().
|
inline |
|
inline |
Definition at line 645 of file packet.hh.
References Flags< T >::isSet().
Referenced by Cache::recvAtomic(), Cache::recvTimingReq(), and CoherentXBar::sinkPacket().
|
inline |
Definition at line 681 of file packet.hh.
References Flags< T >::isSet().
Referenced by Cache::handleSnoop(), CoherentXBar::recvAtomicBackdoor(), and CoherentXBar::recvTimingReq().
|
inline |
Set the value in the data pointer to v using the specified endianness.
Definition at line 112 of file packet_access.hh.
References BigEndianByteOrder, LittleEndianByteOrder, panic, and ArmISA::v.
Referenced by LSQ< Impl >::SplitDataRequest::SplitDataRequest().
|
inline |
Update the address of this packet mid-transaction.
This is used by the address mapper to change an already set address to a new one based on the system configuration. It is intended to remap an existing address, so it asserts that the current address is valid.
Definition at line 728 of file packet.hh.
References Flags< T >::isSet().
Referenced by SMMUTranslationProcess::completeTransaction(), AddrMapper::recvAtomic(), AddrMapper::recvAtomicSnoop(), AddrMapper::recvFunctional(), AddrMapper::recvFunctionalSnoop(), AddrMapper::recvTimingReq(), and AddrMapper::recvTimingResp().
|
inline |
Definition at line 712 of file packet.hh.
References MemCmd::BadAddressError, and MemCmd::isResponse().
Referenced by IsaFake::read(), HSAPacketProcessor::read(), and IsaFake::write().
|
inline |
Set the value in the data pointer to v as big endian.
Definition at line 98 of file packet_access.hh.
References htobe(), and setRaw().
Referenced by SparcISA::TLB::doMmuRegRead(), DumbTOD::read(), Iob::readIob(), and Iob::readJBus().
|
inline |
Definition at line 685 of file packet.hh.
References Flags< T >::set().
Referenced by Cache::doWritebacks(), Cache::handleSnoop(), CoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvTimingReq(), and Cache::recvTimingSnoopReq().
|
inline |
Snoop flags.
Set the cacheResponding flag. This is used by the caches to signal another cache that they are responding to a request. A cache will only respond to snoops if it has the line in either Modified or Owned state. Note that on snoop hits we always pass the line as Modified and never Owned. In the case of an Owned line we proceed to invalidate all other copies.
On a cache fill (see Cache::handleFill), we check hasSharers first, ignoring the cacheResponding flag if hasSharers is set. A line is consequently allocated as:
hasSharers cacheResponding state true false Shared true true Shared false false Exclusive false true Modified
Definition at line 579 of file packet.hh.
References MemCmd::isRequest(), Flags< T >::isSet(), and Flags< T >::set().
Referenced by Cache::handleSnoop(), MSHR::handleSnoop(), Cache::recvTimingSnoopReq(), Cache::satisfyRequest(), and BaseCache::satisfyRequest().
|
inline |
Copy data into the packet from the provided pointer.
Definition at line 1152 of file packet.hh.
References Flags< T >::isSet().
Referenced by AbstractMemory::access(), GPUCoalescer::atomicCallback(), BaseCache::cmpAndSwap(), X86ISA::TLB::demapPage(), X86ISA::GpuTLB::demapPage(), AbstractMemory::functionalAccess(), Sequencer::hitCallback(), GPUCoalescer::hitCallback(), X86ISA::Interrupts::read(), VirtIODeviceBase::readConfigBlob(), BaseCache::satisfyRequest(), and Cache::serviceMSHRTargets().
|
inline |
Copy data into the packet from the provided block pointer, which is aligned to the given block size.
Definition at line 1171 of file packet.hh.
References getOffset().
Referenced by SimpleCache::accessFunctional(), Cache::handleSnoop(), BaseCache::satisfyRequest(), BaseCache::writebackBlk(), and BaseCache::writecleanBlk().
|
inline |
The express snoop flag is used for two purposes.
Firstly, it is used to bypass flow control for normal (non-snoop) requests going downstream in the memory system. In cases where a cache is responding to a snoop from another cache (it had a dirty line), but the line is not writable (and there are possibly other copies), the express snoop flag is set by the downstream cache to invalidate all other copies in zero time. Secondly, the express snoop flag is also set to be able to distinguish snoop packets that came from a downstream cache, rather than snoop packets from neighbouring caches.
Definition at line 627 of file packet.hh.
References Flags< T >::set().
Referenced by Cache::handleSnoop(), Cache::isCachedAbove(), and CoherentXBar::recvTimingReq().
|
inline |
Definition at line 955 of file packet.hh.
References MemCmd::FunctionalReadError, MemCmd::FunctionalWriteError, and MemCmd::isWrite().
Referenced by RubyPort::MemSlavePort::recvFunctional().
|
inline |
On fills, the hasSharers flag is used by the caches in combination with the cacheResponding flag, as clarified above.
If the hasSharers flag is not set, the packet is passing writable. Thus, a response from a memory passes the line as writable by default.
The hasSharers flag is also used by upstream caches to inform a downstream cache that they have the block (by calling setHasSharers on snoop request packets that hit in upstream cachs tags or MSHRs). If the snoop packet has sharers, a downstream cache is prevented from passing a dirty line upwards if it was not explicitly asked for a writable copy. See Cache::satisfyCpuSideRequest.
The hasSharers flag is also used on writebacks, in combination with the WritbackClean or WritebackDirty commands, to allocate the block downstream either as:
command hasSharers state WritebackDirty false Modified WritebackDirty true Owned WritebackClean false Exclusive WritebackClean true Shared
Definition at line 611 of file packet.hh.
References Flags< T >::set().
Referenced by Cache::createMissPacket(), Cache::handleSnoop(), MSHR::handleSnoop(), Cache::recvTimingSnoopReq(), Cache::satisfyRequest(), BaseCache::writebackBlk(), and BaseCache::writecleanBlk().
|
inline |
Set the value in the data pointer to v as little endian.
Definition at line 105 of file packet_access.hh.
References htole(), and setRaw().
Referenced by CopyEngine::CopyEngineChannel::channelRead(), X86ISA::TLB::finalizePhysical(), ArmISA::TLB::finalizePhysical(), PciVirtIO::read(), MmioVirtIO::read(), NoMaliGpu::read(), Pl011::read(), AmbaFake::read(), X86ISA::Speaker::read(), A9SCU::read(), IsaFake::read(), X86ISA::Cmos::read(), X86ISA::I8254::read(), X86ISA::I82094AA::read(), X86ISA::I8259::read(), HDLcd::read(), Gicv2m::read(), PL031::read(), Sp804::Timer::read(), EnergyCtrl::read(), A9GlobalTimer::Timer::read(), CpuLocalTimer::Timer::read(), X86ISA::I8042::read(), GpuDispatcher::read(), RealViewCtrl::read(), CopyEngine::read(), Sinic::Device::read(), NSGigE::read(), Pl111::read(), IGbE::read(), UFSHostDevice::read(), IdeController::readConfig(), PciDevice::readConfig(), SMMUv3::readControl(), GicV2::readCpu(), VGic::readCtrl(), GicV2::readDistributor(), AmbaDevice::readId(), VGic::readVCpu(), RiscvISA::Walker::WalkerState::stepWalk(), and X86ISA::Walker::WalkerState::stepWalk().
|
inline |
Set the value in the data pointer to v without byte swapping.
Definition at line 58 of file packet_access.hh.
References data, DYNAMIC_DATA, flags, Flags< T >::isSet(), size, and STATIC_DATA.
Referenced by X86ISA::buildIntPacket(), MmDisk::read(), Uart8250::read(), I2CBus::read(), setBE(), and setLE().
|
inline |
On responding to a snoop request (which only happens for Modified or Owned lines), make sure that we can transform an Owned response to a Modified one.
If this flag is not set, the responding cache had the line in the Owned state, and there are possibly other Shared copies in the memory system. A downstream cache helps in orchestrating the invalidation of these copies by sending out the appropriate express snoops.
Definition at line 639 of file packet.hh.
References Flags< T >::set().
Referenced by Cache::handleSnoop(), MSHR::handleSnoop(), and Cache::recvTimingSnoopReq().
|
inline |
Set when a request hits in a cache and the cache is not going to respond.
This is used by the crossbar to coordinate responses for cache maintenance operations.
Definition at line 675 of file packet.hh.
References MemCmd::isClean(), Flags< T >::isSet(), and Flags< T >::set().
Referenced by Cache::handleSnoop(), MSHR::handleSnoop(), BaseCache::recvAtomic(), and BaseCache::sendMSHRQueuePacket().
|
inline |
Definition at line 967 of file packet.hh.
References Flags< T >::isSet(), and Flags< T >::set().
|
inline |
Definition at line 683 of file packet.hh.
References Flags< T >::set().
Referenced by Shader::doFunctionalAccess().
void Packet::setUintX | ( | uint64_t | w, |
ByteOrder | endian | ||
) |
Set the value in the word w after truncating it to the length of the packet and then byteswapping it to the desired endianness.
Definition at line 351 of file packet.cc.
References getSize(), and panic.
Referenced by SimpleUart::read(), Sp805::read(), FVPBasePwrCtrl::read(), Gicv3::read(), Pl050::read(), Gicv3Its::read(), GenericTimerFrame::read(), and GenericTimerMem::read().
|
inline |
A writeback/writeclean cmd gets propagated further downstream by the receiver when the flag is set.
Definition at line 661 of file packet.hh.
References MemCmd::isEviction(), MemCmd::isWrite(), Flags< T >::set(), and MemCmd::WriteClean.
Referenced by BaseCache::writecleanBlk().
|
inline |
Definition at line 684 of file packet.hh.
References Flags< T >::isSet().
Referenced by RubyPort::MemSlavePort::recvFunctional().
|
inline |
Check a functional request against a memory value stored in another packet (i.e.
an in-transit request or response). Returns true if the current packet is a read, and the other packet provides the data, which is then copied to the current packet. If the current packet is a write, and the other packet intersects this one, then we update the data accordingly.
Definition at line 1258 of file packet.hh.
References getAddr(), getPtr(), getSize(), hasData(), isMaskedWrite(), isSecure(), and warn.
Referenced by BaseCache::functionalAccess(), SequencerRequest::functionalWrite(), SimpleMemory::recvFunctional(), SerialLink::SerialLinkSlavePort::recvFunctional(), DRAMSim2::recvFunctional(), Bridge::BridgeSlavePort::recvFunctional(), WriteQueueEntry::TargetList::trySatisfyFunctional(), WriteQueueEntry::trySatisfyFunctional(), PacketQueue::trySatisfyFunctional(), MSHR::TargetList::trySatisfyFunctional(), SerialLink::SerialLinkMasterPort::trySatisfyFunctional(), Bridge::BridgeMasterPort::trySatisfyFunctional(), and MSHR::trySatisfyFunctional().
bool Packet::trySatisfyFunctional | ( | Printable * | obj, |
Addr | base, | ||
bool | is_secure, | ||
int | size, | ||
uint8_t * | _data | ||
) |
Check a functional request against a memory value represented by a base/size pair and an associated data array.
If the current packet is a read, it may be satisfied by the memory value. If the current packet is a write, it may update the memory value.
Definition at line 231 of file packet.cc.
References _isSecure, addr, bytesValid, cmdString(), getAddr(), getSize(), ArmISA::i, isPrint(), isRead(), isWrite(), panic, safe_cast(), and senderState.
|
inline |
Copy data from the packet to the memory at the provided pointer.
p | Pointer to which data will be copied. |
Definition at line 1181 of file packet.hh.
References X86ISA::base, and ArmISA::i.
Referenced by AbstractMemory::access(), BaseCache::cmpAndSwap(), X86ISA::TLB::demapPage(), AbstractMemory::functionalAccess(), Sequencer::hitCallback(), MemCheckerMonitor::recvTimingReq(), MemCheckerMonitor::recvTimingResp(), X86ISA::Interrupts::write(), and VirtIODeviceBase::writeConfigBlob().
|
inline |
Copy data from the packet to the provided block pointer, which is aligned to the given block size.
blk_data | Pointer to block to which data will be copied. |
blkSize | Block size in bytes. |
Definition at line 1205 of file packet.hh.
References getOffset().
Referenced by BaseCache::access(), SimpleCache::accessFunctional(), BaseCache::handleFill(), SimpleCache::insert(), and BaseCache::satisfyRequest().
|
inline |
Definition at line 668 of file packet.hh.
References Flags< T >::isSet().
Referenced by BaseCache::access().
|
private |
True if the request targets the secure memory space.
Definition at line 338 of file packet.hh.
Referenced by trySatisfyFunctional().
|
private |
The address of the request.
This address could be virtual or physical, depending on the system configuration.
Definition at line 335 of file packet.hh.
Referenced by trySatisfyFunctional().
|
private |
Track the bytes found that satisfy a functional read.
Definition at line 346 of file packet.hh.
Referenced by trySatisfyFunctional().
MemCmd Packet::cmd |
The command field of the packet.
Definition at line 316 of file packet.hh.
Referenced by NoncoherentCache::access(), AbstractMemory::access(), BaseCache::access(), WriteQueueEntry::allocate(), MSHR::allocate(), MSHR::allocateTarget(), BaseCache::allocateWriteBuffer(), TimingSimpleCPU::buildSplitPacket(), copyError(), Cache::createMissPacket(), Cache::doWritebacks(), Cache::doWritebacksAtomic(), MSHR::extractServiceableTargets(), CoherentXBar::forwardAtomic(), NoncoherentCache::handleAtomicReqMiss(), Cache::handleAtomicReqMiss(), BaseCache::handleFill(), MSHR::handleSnoop(), Cache::handleTimingReqMiss(), BaseCache::handleTimingReqMiss(), RubyPort::MemSlavePort::hitCallback(), Cache::isCachedAbove(), Prefetcher::BOP::notifyFill(), Prefetcher::Base::observeAccess(), Prefetcher::Base::probeNotify(), ComputeUnit::DataPort::processMemRespEvent(), Cache::promoteWholeLineWrites(), X86ISA::IntSlavePort< X86ISA::Interrupts >::recvAtomic(), RubyPort::MemSlavePort::recvAtomic(), CoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvAtomicSnoop(), X86ISA::Interrupts::recvMessage(), RubyPort::MemSlavePort::recvTimingReq(), CoherentXBar::recvTimingReq(), NoncoherentCache::recvTimingResp(), BaseCache::recvTimingResp(), ComputeUnit::DTLBPort::recvTimingResp(), ComputeUnit::ITLBPort::recvTimingResp(), Minor::LSQ::recvTimingResp(), Cache::recvTimingSnoopResp(), replaceUpgrade(), Cache::satisfyRequest(), BaseCache::satisfyRequest(), Cache::sendMSHRQueuePacket(), ComputeUnit::sendRequest(), NoncoherentCache::serviceMSHRTargets(), Cache::serviceMSHRTargets(), X86ISA::Walker::WalkerState::stepWalk(), and MSHR::TargetList::updateFlags().
|
private |
|
private |
uint32_t Packet::headerDelay |
The extra delay from seeing the packet until the header is transmitted.
This delay is used to communicate the crossbar forwarding latency to the neighbouring object (e.g. a cache) that actually makes the packet wait. As the delay is relative, a 32-bit unsigned should be sufficient.
Definition at line 360 of file packet.hh.
Referenced by BaseCache::access(), DRAMSim2::accessAndRespond(), DRAMCtrl::accessAndRespond(), SMMUv3SlaveInterface::atsMasterRecvTimingResp(), SMMUv3SlaveInterface::atsSlaveRecvTimingReq(), BaseXBar::calcPacketTiming(), BaseCache::handleFill(), Cache::handleSnoop(), BaseCache::handleTimingReqHit(), BaseCache::handleUncacheableWriteResp(), SMMUv3::masterRecvTimingResp(), SMMUv3::masterTableWalkRecvTimingResp(), StubSlavePort::processResponseEvent(), GenericPciHost::read(), PioPort< X86ISA::Interrupts >::recvAtomic(), X86ISA::IntSlavePort< X86ISA::Interrupts >::recvAtomic(), SMMUControlPort::recvAtomic(), RiscvISA::Walker::WalkerState::recvPacket(), X86ISA::Walker::WalkerState::recvPacket(), HMCController::recvTimingReq(), SMMUv3SlaveInterface::recvTimingReq(), NoncoherentXBar::recvTimingReq(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::recvTimingReq(), SerialLink::SerialLinkSlavePort::recvTimingReq(), SimpleMemory::recvTimingReq(), Bridge::BridgeSlavePort::recvTimingReq(), CoherentXBar::recvTimingReq(), BaseCache::recvTimingReq(), Gicv3Its::recvTimingResp(), sc_gem5::TlmToGem5Bridge< BITWIDTH >::recvTimingResp(), NoncoherentXBar::recvTimingResp(), SerialLink::SerialLinkMasterPort::recvTimingResp(), CoherentXBar::recvTimingResp(), Bridge::BridgeMasterPort::recvTimingResp(), BaseCache::recvTimingResp(), CoherentXBar::recvTimingSnoopReq(), Cache::recvTimingSnoopResp(), CoherentXBar::recvTimingSnoopResp(), SMMUv3::runProcessTiming(), NoncoherentCache::serviceMSHRTargets(), Cache::serviceMSHRTargets(), and GenericPciHost::write().
const PacketId Packet::id |
Definition at line 318 of file packet.hh.
Referenced by Cache::handleSnoop(), MSHR::handleSnoop(), BaseCache::recvAtomic(), CoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvTimingReq(), and BaseCache::sendMSHRQueuePacket().
uint32_t Packet::payloadDelay |
The extra pipelining delay from seeing the packet until the end of payload is transmitted by the component that provided it (if any).
This includes the header delay. Similar to the header delay, this is used to make up for the fact that the crossbar does not make the packet wait. As the delay is relative, a 32-bit unsigned should be sufficient.
Definition at line 378 of file packet.hh.
Referenced by BaseCache::access(), DRAMSim2::accessAndRespond(), DRAMCtrl::accessAndRespond(), BaseCache::allocateWriteBuffer(), SMMUv3SlaveInterface::atsMasterRecvTimingResp(), SMMUv3SlaveInterface::atsSlaveRecvTimingReq(), BaseXBar::calcPacketTiming(), BaseCache::handleFill(), Cache::handleSnoop(), BaseCache::handleTimingReqHit(), BaseCache::handleUncacheableWriteResp(), SMMUv3::masterRecvTimingResp(), SMMUv3::masterTableWalkRecvTimingResp(), StubSlavePort::processResponseEvent(), GenericPciHost::read(), PioPort< X86ISA::Interrupts >::recvAtomic(), X86ISA::IntSlavePort< X86ISA::Interrupts >::recvAtomic(), SMMUControlPort::recvAtomic(), NoncoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvAtomicBackdoor(), CoherentXBar::recvAtomicSnoop(), RiscvISA::Walker::WalkerState::recvPacket(), X86ISA::Walker::WalkerState::recvPacket(), HMCController::recvTimingReq(), SMMUv3SlaveInterface::recvTimingReq(), NoncoherentXBar::recvTimingReq(), sc_gem5::Gem5ToTlmBridge< BITWIDTH >::recvTimingReq(), SerialLink::SerialLinkSlavePort::recvTimingReq(), SimpleMemory::recvTimingReq(), Bridge::BridgeSlavePort::recvTimingReq(), CoherentXBar::recvTimingReq(), BaseCache::recvTimingReq(), Gicv3Its::recvTimingResp(), sc_gem5::TlmToGem5Bridge< BITWIDTH >::recvTimingResp(), NoncoherentXBar::recvTimingResp(), SerialLink::SerialLinkMasterPort::recvTimingResp(), CoherentXBar::recvTimingResp(), Bridge::BridgeMasterPort::recvTimingResp(), BaseCache::recvTimingResp(), Cache::recvTimingSnoopResp(), CoherentXBar::recvTimingSnoopResp(), SMMUv3::runProcessTiming(), NoncoherentCache::serviceMSHRTargets(), Cache::serviceMSHRTargets(), GenericPciHost::write(), BaseCache::writebackBlk(), and BaseCache::writecleanBlk().
RequestPtr Packet::req |
A pointer to the original request.
Definition at line 321 of file packet.hh.
Referenced by Cache::access(), AbstractMemory::access(), BaseCache::access(), SimpleCache::accessTiming(), Minor::ForwardLineData::adoptPacketData(), WriteQueueEntry::allocate(), MSHR::allocate(), MSHR::allocateTarget(), BaseTrafficGen::allocateWaitingRespSlot(), TLBCoalescer::canCoalesce(), Minor::LSQ::StoreBuffer::canForwardDataToLoad(), AbstractMemory::checkLockedAddrList(), CacheBlk::checkWrite(), BaseCache::cmpAndSwap(), BaseO3DynInst< Impl >::completeAcc(), TimingSimpleCPU::completeDataAccess(), TimingSimpleCPU::completeIfetch(), GPUCoalescer::completeIssue(), TraceCPU::ElasticDataGen::completeMemAccess(), GarnetSyntheticTraffic::completeRequest(), MemTest::completeRequest(), SMMUTranslationProcess::completeTransaction(), NoncoherentCache::createMissPacket(), Cache::createMissPacket(), Prefetcher::Queued::DeferredPacket::createPkt(), Prefetcher::Queued::createPrefetchRequest(), Shader::doFunctionalAccess(), SparcISA::TLB::doMmuRegRead(), SparcISA::TLB::doMmuRegWrite(), AddressMonitor::doMonitor(), Cache::doTimingSupplyResponse(), FetchUnit::fetch(), SMMUTranslRequest::fromPacket(), sc_gem5::TlmToGem5Bridge< BITWIDTH >::get_direct_mem_ptr(), BaseCache::getNextQueueEntry(), Cache::handleAtomicReqMiss(), X86ISA::GpuTLB::handleFuncTranslationReturn(), GPUCoalescer::handleLlsc(), LSQ< Impl >::SingleDataRequest::handleLocalAccess(), TimingSimpleCPU::handleReadPacket(), DmaPort::handleResp(), SimpleMemobj::handleResponse(), Cache::handleSnoop(), MSHR::handleSnoop(), Cache::handleTimingReqHit(), Cache::handleTimingReqMiss(), BaseCache::handleTimingReqMiss(), X86ISA::GpuTLB::handleTranslationReturn(), TimingSimpleCPU::handleWritePacket(), RubyPort::MemSlavePort::hitCallback(), Sequencer::hitCallback(), BaseCache::incHitCount(), BaseCache::incMissCount(), Prefetcher::Queued::insert(), BaseTags::insertBlock(), GPUCoalescer::insertRequest(), CoherentXBar::isDestination(), Sequencer::issueRequest(), GPUCoalescer::issueRequest(), X86ISA::GpuTLB::issueTLBLookup(), SnoopFilter::lookupRequest(), SnoopFilter::lookupSnoop(), ItsTranslation::main(), VIPERCoalescer::makeRequest(), Sequencer::makeRequest(), GPUCoalescer::makeRequest(), BaseCPU::mwait(), Prefetcher::Base::observeAccess(), AMBA::orderId(), sc_gem5::packet2payload(), X86ISA::GpuTLB::pagingProtectionChecks(), Prefetcher::Base::PrefetchInfo::PrefetchInfo(), print(), Prefetcher::Base::probeNotify(), DefaultFetch< Impl >::processCacheCompletion(), FetchStage::processFetchReturn(), FetchUnit::processFetchReturn(), ComputeUnit::DataPort::processMemReqEvent(), ComputeUnit::DataPort::processMemRespEvent(), QoS::MemSinkCtrl::processNextReqEvent(), TLBCoalescer::processProbeTLBEvent(), MSHR::promoteWritable(), Gicv3::read(), CpuLocalTimer::read(), Sinic::Device::read(), GicV2::readCpu(), VGic::readCtrl(), GicV2::readDistributor(), Iob::readJBus(), VGic::readVCpu(), Cache::recvAtomic(), BaseCache::recvAtomic(), TLBCoalescer::CpuSidePort::recvFunctional(), X86ISA::GpuTLB::CpuSidePort::recvFunctional(), DefaultFetch< Impl >::recvReqRetry(), ComputeUnit::DataPort::recvReqRetry(), ComputeUnit::SQCPort::recvReqRetry(), ComputeUnit::DTLBPort::recvReqRetry(), ComputeUnit::ITLBPort::recvReqRetry(), HMCController::recvTimingReq(), RubyPort::MemSlavePort::recvTimingReq(), NoncoherentXBar::recvTimingReq(), MemCheckerMonitor::recvTimingReq(), QoS::MemSinkCtrl::recvTimingReq(), CoherentXBar::recvTimingReq(), BaseTrafficGen::recvTimingResp(), DefaultFetch< Impl >::IcachePort::recvTimingResp(), DmaPort::recvTimingResp(), NoncoherentXBar::recvTimingResp(), MemCheckerMonitor::recvTimingResp(), CoherentXBar::recvTimingResp(), X86ISA::GpuTLB::MemSidePort::recvTimingResp(), ComputeUnit::DataPort::recvTimingResp(), BaseCache::recvTimingResp(), ComputeUnit::DTLBPort::recvTimingResp(), ComputeUnit::ITLBPort::recvTimingResp(), Cache::recvTimingSnoopReq(), CoherentXBar::recvTimingSnoopReq(), Cache::recvTimingSnoopResp(), CoherentXBar::recvTimingSnoopResp(), Minor::LSQ::SplitDataRequest::retireResponse(), QoS::Policy::schedule(), QoS::MemCtrl::schedule(), DmaPort::sendDma(), BaseCache::sendMSHRQueuePacket(), ComputeUnit::sendRequest(), ComputeUnit::sendSyncRequest(), ComputeUnit::LDSPort::sendTimingReq(), NoncoherentCache::serviceMSHRTargets(), Cache::serviceMSHRTargets(), RiscvISA::Walker::WalkerState::stepWalk(), X86ISA::Walker::WalkerState::stepWalk(), AbstractMemory::trackLoadLocked(), CacheBlk::trackLoadLocked(), X86ISA::GpuTLB::translationReturn(), Minor::LSQ::tryToSend(), BaseTrafficGen::update(), TLBCoalescer::updatePhysAddresses(), SnoopFilter::updateResponse(), SnoopFilter::updateSnoopResponse(), MSHR::TargetList::updateWriteFlags(), Gicv3::write(), GpuDispatcher::write(), CpuLocalTimer::write(), Sinic::Device::write(), Sequencer::writeCallback(), GicV2::writeCpu(), VGic::writeCtrl(), GicV2::writeDistributor(), Iob::writeJBus(), AbstractMemory::writeOK(), and VGic::writeVCpu().
SenderState* Packet::senderState |
This packet's sender state.
Devices should use dynamic_cast<> to cast to the state appropriate to the sender. The intent of this variable is to allow a device to attach extra information to a request. A response packet must return the sender state that was attached to the original request (even if a new packet is created).
Definition at line 474 of file packet.hh.
Referenced by GPUCoalescer::atomicCallback(), LSQ< Impl >::SplitDataRequest::buildPackets(), TimingSimpleCPU::buildSplitPacket(), TLBCoalescer::canCoalesce(), TimingSimpleCPU::SplitFragmentSenderState::clearFromParent(), LSQUnit< Impl >::completeDataAccess(), TimingSimpleCPU::completeDataAccess(), LSQ< Impl >::completeDataAccess(), LdsState::countBankConflicts(), DmaPort::dmaAction(), FetchUnit::fetch(), AbstractMemory::functionalAccess(), Shader::functionalTLBAccess(), LdsState::getDynInstr(), X86ISA::GpuTLB::handleFuncTranslationReturn(), DmaPort::handleResp(), X86ISA::GpuTLB::handleTranslationReturn(), GPUCoalescer::hitCallback(), Check::initiateAction(), Check::initiateCheck(), Check::initiateFlush(), Check::initiatePrefetch(), Cache::isCachedAbove(), X86ISA::GpuTLB::issueTLBLookup(), popSenderState(), LdsState::process(), FetchStage::processFetchReturn(), FetchUnit::processFetchReturn(), ComputeUnit::DataPort::processMemReqEvent(), ComputeUnit::DataPort::processMemRespEvent(), TLBCoalescer::processProbeTLBEvent(), pushSenderState(), TLBCoalescer::CpuSidePort::recvFunctional(), X86ISA::GpuTLB::CpuSidePort::recvFunctional(), TimingSimpleCPU::DcachePort::recvReqRetry(), TLBCoalescer::CpuSidePort::recvTimingReq(), RubyTester::CpuPort::recvTimingResp(), AbstractController::recvTimingResp(), MemCheckerMonitor::recvTimingResp(), AddrMapper::recvTimingResp(), CommMonitor::recvTimingResp(), ComputeUnit::DataPort::recvTimingResp(), LSQUnit< Impl >::recvTimingResp(), ComputeUnit::DTLBPort::recvTimingResp(), ComputeUnit::ITLBPort::recvTimingResp(), ComputeUnit::LDSPort::recvTimingResp(), LSQ< Impl >::SingleDataRequest::recvTimingResp(), LSQ< Impl >::SplitDataRequest::recvTimingResp(), LSQ< Impl >::recvTimingResp(), ComputeUnit::sendRequest(), TimingSimpleCPU::sendSplitData(), ComputeUnit::sendSyncRequest(), ComputeUnit::LDSPort::sendTimingReq(), ComputeUnit::sendToLds(), X86ISA::GpuTLB::translationReturn(), trySatisfyFunctional(), LSQUnit< Impl >::trySendPacket(), and TLBCoalescer::updatePhysAddresses().
|
private |
uint32_t Packet::snoopDelay |
Keep track of the extra delay incurred by snooping upwards before sending a request down the memory system.
This is used by the coherent crossbar to account for the additional request delay.
Definition at line 368 of file packet.hh.
Referenced by CoherentXBar::recvTimingReq(), Cache::recvTimingSnoopReq(), and CoherentXBar::recvTimingSnoopReq().