Go to the documentation of this file.
34 #ifndef __MEM_CACHE_TAGS_SECTOR_BLK_HH__
35 #define __MEM_CACHE_TAGS_SECTOR_BLK_HH__
129 src_requestor_ID,
const uint32_t task_ID)
override;
136 std::string
print()
const override;
230 void setPosition(
const uint32_t set,
const uint32_t way)
override;
233 #endif //__MEM_CACHE_TAGS_SECTOR_BLK_HH__
A replaceable entry is a basic entry in a 2d table-like structure that needs to have replacement func...
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.
void setValid() override
Set valid bit and inform sector block.
SectorSubBlk & operator=(const SectorSubBlk &)=delete
SectorBlk & operator=(const SectorBlk &)=delete
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.
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.
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.
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.
A sector is composed of sub-blocks, and each sub-block has information regarding its sector and a poi...
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17