Go to the documentation of this file.
44 assert(sector_blk !=
nullptr);
95 const int src_requestor_ID,
const uint32_t task_ID)
101 "Overwriting valid sector!");
179 for (
auto& blk :
blks) {
180 blk->setPosition(set, way);
A replaceable entry is a basic entry in a 2d table-like structure that needs to have replacement func...
virtual void setValid()
Set valid bit.
uint8_t _validCounter
Counter of the number of valid sub-blocks.
void setSecure() override
Set secure bit and inform sector block.
void invalidate() override
Invalidate the block and inform sector block.
bool _secureBit
Whether sector blk is in secure-space or not.
void setTag(const Addr tag)
Set tag associated to this block.
Addr getTag() const
Get tag associated to this block.
SectorBlk * _sectorBlk
Sector block associated to this block.
std::vector< SectorSubBlk * > blks
List of blocks associated to this sector.
void insert(const Addr tag, const bool is_secure, const int src_requestor_ID, const uint32_t task_ID) override
Set member variables when a block insertion occurs.
void setSectorBlock(SectorBlk *sector_blk)
Set sector block associated to this block.
void invalidateSubBlk()
Decrease the number of valid sub-blocks.
Addr getTag() const
Get tag associated to this block.
void setPosition(const uint32_t set, const uint32_t way) override
Sets the position of the sub-entries, besides its own.
virtual void setPosition(const uint32_t set, const uint32_t way)
Set both the set and way.
void setValid() override
Set valid bit and inform sector block.
Copyright (c) 2018 Inria All rights reserved.
std::string print() const override
Pretty-print tag, set and way, and interpret state bits to readable form including mapping to a MOESI...
virtual void invalidate()
Invalidate the block and clear all state.
uint8_t getNumValid() const
Get the number of sub-blocks that have been validated.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
virtual void setSecure()
Set secure bit.
bool isValid() const
Checks that a sector block is valid.
Addr tag
Data block tag value.
int _sectorOffset
The offset of this sub-block in the sector.
#define panic_if(cond,...)
Conditional panic macro that checks the supplied condition and only panics if the condition is true a...
void validateSubBlk()
Increase the number of valid sub-blocks.
std::string print() const override
Pretty-print sector offset and other CacheBlk information.
bool isSecure() const
Checks that a sector block is secure.
void setSecure()
Set secure bit.
virtual void insert(const Addr tag, const bool is_secure, const int src_requestor_ID, const uint32_t task_ID)
Set member variables when a block insertion occurs.
void setSectorOffset(const int sector_offset)
Set offset of this sub-block within the sector.
int getSectorOffset() const
Get offset of this sub-block within the sector.
Addr _tag
Sector tag value.
const SectorBlk * getSectorBlock() const
Get sector block associated to this block.
std::string csprintf(const char *format, const Args &...args)
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17